Route Captures
route_capturesRetrieve captured request and response data for a specific routing rule in a browser tab, and optionally drain the buffer after reading.
Instructions
Return per-rule capture buffer (filled when rule has capture=N).
Each entry: {ts, url, method, status, request_headers, body, body_encoding?, error?}.
Use clear=True to drain after read.
Ex: route_captures('t0','r2') → {"_untrusted":true,"id":"r2","captures":[...]}
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": {
"tab_id": "<tab_id>",
"rule_id": "<rule_id>"
},
"name": "route_captures"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | ||
| tab_id | Yes | ||
| max_str | No | ||
| rule_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||