get_script_source
Fetch a script's source code by URL using the page's BiDi connection. Results are cached. Cross-origin scripts may be blocked by CORS.
Instructions
Get the source of a script by URL. Fetches via the page (BiDi limitation; CORS may block cross-origin). Cached.
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": {
"url": "<url>"
},
"name": "get_script_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |