This is the default web scraping method, replacing older approaches like web_fetch.
Use this skill when user says:
KeywordsAction抓取 / crawl / scrape / fetchUse Chrome + WebMCP to scrape web pages采集Same as above获取...新闻Scrape news pages从...网站Specify website to scrape同花顺Scrape Tonghuashun (10jqka) data东方财富Scrape East Money data雪球Scrape Xueqiu data百度Search or scrape Baidu content
User InputExecution"抓取光库科技的新闻"Open Tonghuashun in Chrome, extract news"抓取宁德时代的股吧"Open East Money guba in Chrome"从同花顺抓取xxx"Open Tonghuashun page in Chrome"search xxx"Open Google search in Chrome"查一下xxx"Search or scrape in Chrome
javascript
{ action: "status" }
If not running, start it:
javascript
{ action: "start" }
javascript
{ action: "open", targetUrl: "https://stockpage.10jqka.com.cn/300620/news/", target: "host" }
javascript
{ action: "snapshot", targetId: "xxx", maxChars: 20000 }
javascript
{ action: "act", targetId: "xxx", request: {"kind": "click", ref: "e33"} }
javascript
{ action: "navigate", targetId: "xxx", url: "about:blank" }
text
URL: https://stockpage.10jqka.com.cn/{stock_code}/news/
Example: https://stockpage.10jqka.com.cn/300620/news/
text
URL: https://guba.eastmoney.com/list,{stock_code}.html
Example: https://guba.eastmoney.com/list,300620.html
text
URL: https://xueqiu.com/S/SZ{stock_code}
Example: https://xueqiu.com/S/SZ300620
text
URL: https://www.baidu.com/s?wd={keyword}&tn=news
chrome://flags/#enable-experimental-web-platform-features → Enabledchrome://flags/#enable-webmcp-testing → EnabledUse target="host" instead of "sandbox"
Must cleanup after each task:
about:blankabout:blank tabs exist, keep only the latest one, close othersbrowser action: tabs to check current tab statusabout:blank tab remainsReuse existing tabs, avoid opening new tabs frequently
Handle anti-scraping sites: Tonghuashun, East Money need complete JavaScript loading
ErrorSolutionSandbox unavailableUse target="host"Slow page loadWait for snapshot to return before操作Content extraction failedUse snapshot's maxChars to get more contentAnti-scraping blockedTry other finance sites or wait and retry