Remove a third-party script from a page
remove_scriptDetach a third-party script from a page. Get the scriptId from list_scripts. Scripts are injected when the page is next saved in the editor or published; the change is not live on an already-published page until then.
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": {
"pageId": "<pageId>",
"scriptId": "<scriptId>"
},
"name": "remove_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | The page to act on (id from list_pages / list_sites). | |
| scriptId | Yes | The script to remove (scriptId from list_scripts). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| pageId | Yes | ||
| removed | Yes | Always true here: removing a script that wasn't there is an error result, not a success with removed:false. | |
| scriptId | Yes | ||
| verified | Yes | False when the write reported success but the confirming read did not match. The change is probably saved; re-read with list_scripts to be sure. | |
| remaining | Yes |