Interact with a webpage
web_interactRun click, fill, select, press, and wait on a live page to test flows or reach content behind interaction. Returns a text accessibility snapshot; screenshot optional.
Instructions
Run a sequence of actions (click, fill, select, press, waitFor) on a live page — for testing flows or reaching content behind interaction. Returns a text accessibility snapshot by default; pass screenshot=true only when you actually need to see pixels.
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_interact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| actions | Yes | ||
| sessionId | No | persist cookies/localStorage under this session identifier across calls | |
| screenshot | No | ||
| ignoreRobots | No | ||
| resultSelector | No | scope the returned snapshot to this subtree |