network_route
Abort a tab’s requests to an exact URL or return a custom stub response to test page behavior under network failure or mocked content.
Instructions
Make a tab's requests to url fail (abort) or get a stub response (respond), to test how the page copes.
url must match exactly, query included: no wildcards. respond answers with status, body and content_type.
It applies to that tab and its frames, and only while the tab is on an allowlisted site. Returns a route id
for network_unroute. Routes are kept in memory and end when zenpilot disconnects from Zen, after 2 minutes
without tool calls. Off unless the user set allow_request_mocking = true in zenpilot's config.
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": "network_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | No | ||
| action | No | abort | |
| status | No | ||
| tab_id | No | ||
| content_type | No | text/plain |