Interact with a web page
web_access_interactInteract with a web page—click, type, scroll, or wait—then read the resulting content when it only appears after those actions.
Instructions
Interact with a caller-specified page — click, type, scroll, wait — then read it. Use this tool only when the content you need appears after that interaction; for a plain read, use web_access_fetch.
The actions run in order in a real browser session that opens on url, and the page comes back as it stands after the last one: a site's own search box filled in and submitted, a sort or filter control chosen, a "load more" button, a tab, a cookie banner, rows that render only once scrolled into view.
{ "url": "https://example.com", "actions": [
{ "type": "click", "selector": "input[name=q]" },
{ "type": "write", "text": "standing desk" },
{ "type": "press", "key": "Enter" },
{ "type": "wait", "selector": ".results .item", "timeout": 20000 }
] }The input schema describes each step's fields. Wait on a selector rather than for a fixed time, click a field before write types into it, and never begin with a navigate to url itself.
Returns: body, the final page (Markdown by default, its HTML with format: "json"), with finalUrl, statusCode and headers. If a step fails, the call still succeeds: error and failedActionIndex (0-based) name the step, and body holds the page as it stood then, so read it before fixing that step's selector. With error and no failedActionIndex, url itself did not load and no step ran.
A call holds a browser session for tens of seconds and is billed at the browser rate. Actions can submit forms and change data on the destination, so treat every call as potentially destructive. A browser session is always a GET: it cannot send a POST, PUT or PATCH with a body.
Requests must comply with destination policy, robots directives, rate limits, and access controls.
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": {
"url": "<url>",
"actions": "<actions>"
},
"name": "web_access_interact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page the browser session opens before the first step, as its full web address. | |
| format | No | How the final page comes back in body: markdown, the page as clean, LLM-ready text, which suits most reads; or json, the page's HTML as the browser left it. | markdown |
| actions | Yes | The steps to run, in order, before the page is read: 1 to 50. | |
| countryCode | No | ISO 3166-1 alpha-2 country code, e.g. 'US': get the page as it is served in that country. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The page as the last step left it, or as it stood when a step failed: Markdown with format markdown, its HTML with json. | |
| error | No | Set when a step failed, or when url itself did not load. The call still succeeds, and body holds the page as it stood then. | |
| headers | Yes | That page's response headers, each name to its values. | |
| finalUrl | No | The address the session ended on, after any navigation the steps caused. | |
| statusCode | Yes | The HTTP status of the page the session ended on. | |
| failedActionIndex | No | 0-based index into actions of the step that failed. |