js
Evaluate JavaScript in the active page and return the last expression's result, with await supported for async workflows.
Instructions
Evaluate JS in the page; returns the last expression (await allowed).
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": {
"code": "<code>"
},
"name": "js"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | ||
| code | Yes |