清空 Mock 规则
browser_clear_mocksRemoves request-mock rules from the active tab and stops intercepting, either all rules or a single one by rule id. Returns the number of rules removed.
Instructions
Remove all (or one, by rule id) request-mock rules of the active tab and stop intercepting. Pass id to remove a single rule. Returns how many were removed.
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": "browser_clear_mocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Rule id to remove (omit to clear all) | |
| tabId | No | Tab id (default: active tab) |