从浏览器页面提取可读内容并转为Markdown格式。当web_fetch失败时使用(如遭遇机器人防护、需要身份验证的页面、Twitter/X、LinkedIn等),且你已...
Extract readable text from an already-open browser page and return markdown, suitable for pages where web_fetch is blocked or missing auth context.
web_fetch returned an error or empty content.web_fetch already returns good markdown/text (faster and cheaper).browser navigate.~/clawd/skills/browser-read/extract.js.browser act with kind=evaluate and pass the script contents as fn.{title, content, excerpt, byline, siteName, length} where content is markdown.document.body.innerText.json
{
"action": "navigate",
"targetId": "...",
"url": "https://example.com"
}
{
"action": "act",
"targetId": "...",
"kind": "evaluate",
"fn": "(() => { ... return {title, content, excerpt, byline, siteName, length}; })()"
}
extract.js is a self-contained IIFE so it can be passed directly as the fn value to browser act.