dom_snapshot
Capture a DOM summary of a target tab, including visible text, inputs, buttons, links, and forms, to give AI agents page structure for analysis.
Instructions
读取目标标签页的DOM摘要,包括可见文本、输入框、按钮、链接和表单。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dom_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | 目标标签页 URL,可传完整 URL 或前缀。 | |
| tabId | No | 目标标签页 ID。 | |
| maxElements | No | ||
| includeHidden | No | ||
| maxTextLength | No |