ruyi_intercept_requests
Start intercepting HTTP requests at the beforeRequestSent stage using URL pattern filters. Intercepted requests are queued for consumption via ruyi_intercept_wait.
Instructions
开始拦截 HTTP 请求(beforeRequestSent 阶段)。支持 URL 模式过滤。拦截的请求用 ruyi_intercept_wait 消费。可修改/拦截/模拟请求(未来版本)。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ruyi_intercept_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageIdx | No | ||
| urlPatterns | No | URL 过滤模式。格式: [{"type":"string","pattern":"/api/"}] 或 [{"type":"pattern","protocol":"https","pathname":"/api/*"}] |