evaluate_js
Evaluate a JavaScript expression in the current or specified page and return its JSON-serializable result as JSON text.
Instructions
Evaluate a JavaScript expression in the page and return its (JSON-serializable) result, as JSON text inside the untrusted-content fence.
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": {
"expression": "<expression>"
},
"name": "evaluate_js"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| expression | Yes |