31 lines
1.3 KiB
JSON
31 lines
1.3 KiB
JSON
{
|
|
"name": "chrome_read_page",
|
|
"description": "Get an accessibility tree representation of visible elements on the page. Only returns elements that are visible in the viewport. Optionally filter for only interactive elements.\nTip: If the returned elements do not include the specific element you need, use the computer tool's screenshot (action=\"screenshot\") to capture the element's on-screen coordinates, then operate by coordinates.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filter": {
|
|
"type": "string",
|
|
"description": "Filter elements: \"interactive\" for such as buttons/links/inputs only (default: all visible elements)"
|
|
},
|
|
"depth": {
|
|
"type": "number",
|
|
"description": "Maximum DOM depth to traverse (integer >= 0). Lower values reduce output size and can improve performance."
|
|
},
|
|
"refId": {
|
|
"type": "string",
|
|
"description": "Focus on the subtree rooted at this element refId (e.g., \"ref_12\"). The refId must come from a recent chrome_read_page response in the same tab (refs may expire)."
|
|
},
|
|
"tabId": {
|
|
"type": "number",
|
|
"description": "Target an existing tab by ID (default: active tab)."
|
|
},
|
|
"windowId": {
|
|
"type": "number",
|
|
"description": "Target window ID to pick active tab when tabId is omitted."
|
|
}
|
|
},
|
|
"required": []
|
|
}
|
|
}
|