export_har
Writes a tab's captured network requests to a HAR 1.2 file and returns the file path, enabling offline debugging and analysis with filters for URL, method, or failed responses.
Instructions
Write a tab's captured requests to a HAR 1.2 file (mode 0600; it contains real cookies and tokens). Default location: the downloads directory. The reply gives the path, not the content.
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": "export_har"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Where to write (relative to the working directory, or absolute). | |
| since | No | Only requests with an id greater than this. | |
| tabId | No | Tab to act on, from tabs_context. Omitted: this session's active tab. Pass it always when several agents share the session. | |
| method | No | ||
| pattern | No | Regular expression matched against the URL (case-insensitive). | |
| failed_only | No | Only failed requests and 4xx / 5xx responses. | |
| resource_type | No | document, xhr, fetch, script, stylesheet, image, font, websocket, ... |