run_safari_javascript
Execute JavaScript code in the current Safari tab and retrieve the result or error message.
Instructions
Execute JavaScript code in the current Safari tab and return the result
Args: javascript_code: JavaScript code to execute
Returns: JavaScript execution result or error message
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": {
"javascript_code": "<javascript_code>"
},
"name": "run_safari_javascript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| javascript_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |