spa_evaluate
Execute custom JavaScript in the page context to test or manipulate single-page app behavior, with optional navigation and session management.
Instructions
Execute JavaScript in the page context.
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": {
"script": "<script>"
},
"name": "spa_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to navigate to first (optional) | |
| script | Yes | JavaScript code to execute | |
| session | No | Session ID | default |