Evaluate Page JavaScript
browse_evaluateExecute JavaScript in a managed browser page to inspect or modify site state using a JSON argument. Use it for scripted interactions that need the site's identity and may change external state.
Instructions
Execute arbitrary JavaScript in one ego-lite Page with one JSON argument. It can use website identity and change external state; it is not read-only.
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": {
"browseId": "<browseId>",
"script": "<script>"
},
"name": "browse_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | p1 | |
| script | Yes | ||
| argument | No | ||
| browseId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| result | No | ||
| status | Yes | ||
| spaceId | No | ||
| browseId | No | ||
| warnings | No | ||
| artifactId | No |