hook_api
Hooks a specified browser API on the current page to intercept or observe calls, enabling runtime tracing and analysis of JavaScript behavior.
Instructions
在当前页面中设置指定浏览器API的Hook。
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": {
"apiName": "<apiName>",
"mode": "<mode>"
},
"name": "hook_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| apiName | Yes | ||
| options | No |