execute_js
Run custom JavaScript in a Fiverr browser tab to inspect the DOM, intercept data, or perform page actions, with async results returned for automation.
Instructions
Run arbitrary JavaScript in the MAIN world of a Fiverr browser tab and return the result. Use this to inspect the DOM, intercept data, or perform any action on the page. The code runs as the body of an async function so you can use await and return values.
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 |
|---|---|---|---|
| url | No | Fiverr page URL to navigate to first (default: current Fiverr tab) | |
| code | Yes | JavaScript source to execute (body of an async function — use return to send data back) | |
| reload | No | Force-reload the tab before executing (default false) |