state
Retrieve the current page's element tree with selectors, tags, and bounding boxes. Use to inspect page structure or locate elements for automation.
Instructions
state() → [{index, changed, tag, text, box}] — 索引元素树
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": "state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sel | No | ||
| tab | No | ||
| max_items | No |