execute_js
Run JavaScript in the current browser tab to execute code and retrieve its result. Use for tasks needing direct interaction with a real website's page context.
Instructions
[Real Chrome browser via the OctoLimb extension — drive the user's browser; use only when the task requires acting on a real website.] Execute arbitrary JavaScript in this task's tab (page context) and return the result.
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": "execute_js"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript to execute. Returns the value of the last expression, like a REPL (e.g. `document.title` returns the title with no explicit return needed). |