Current State
current_stateRetrieve a low-cost page snapshot—URL, title, headings, forms, and interactive element count—to orient after navigation and detect duplicate states.
Instructions
Cheap orientation: URL+title+h1/h2+forms+interactive_count. Lighter than aria_snapshot.
Good first move after navigate. Dedups identical state.
Ex: current_state('t0') → {"url":"...","title":"...","h1_h2":[...],"forms":[...],"interactive_count":42}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tab_id": "<tab_id>"
},
"name": "current_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | ||
| force_refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||