i have tried a few times and agent is always preferring evals over simple "get text body". that's annoying and it is not always successful. it is doing something like this:
# Extract FAQ section text
$ agent-browser eval --stdin <<'EVALEOF'
(() => {
const h2 = Array.from(document.querySelectorAll('h2')).find(el => el.textContent.trim() === 'Частые вопросы');
if (!h2) return 'FAQ section not found';
const section = h2.parentElement?.parentElement || h2.parentElement;
return section ? section.innerText : h2.parentElement?.innerText;
})()
EVALEOF