block_urls
Blocks specified URL patterns in an Electron app via CDP Network.setBlockedURLs to stop unwanted requests such as analytics or tracking scripts during debugging.
Instructions
Block URL patterns via Network.setBlockedURLs (e.g. .analytics.com/)
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": {
"urls": "<urls>"
},
"name": "block_urls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | URL patterns to block | |
| targetId | No | ||
| processId | No | Process ID. If omitted, uses the single running app. |