spa_chain
Execute a chain of browser actions in single-page apps, including clicks, fills, waits, and screenshots, with device emulation and persistent sessions.
Instructions
Execute a chain of actions in sequence. Supports all browser actions plus chain-specific commands like wait, wait-for-idle, press, etc.
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": {
"chain": "<chain>"
},
"name": "spa_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to navigate to first (optional) | |
| chain | Yes | Array of action objects to execute | |
| device | No | Device to emulate | |
| session | No | Session ID | default |
| spaMode | No | ||
| stopOnError | No | Stop chain execution on first error |