Har Dump
har_dumpExport recorded HAR traffic from a tab: write a full, byte-exact JSON file to disk or return an inline, size-capped summary with configurable body and entry limits.
Instructions
Return recorded HAR. With path, write full JSON to disk (no truncation, no
_compact) and return summary. Without path, returns the HAR inline through
_compact w/ tunable max_str (per body) and max_list / max_entries
(entry count).
For full-fidelity inline dump, raise both caps OR write to disk. Disk write is byte-exact.
Ex: har_dump('t0') → {"_untrusted":true,"har":{...},"entries":42} Ex: har_dump('t0', path='/tmp/session.har', clear=True) → {"wrote":"/tmp/session.har","bytes":98231,"entries":42,"cleared":true} Ex: har_dump('t0', max_str=50000) # don't truncate JSON bodies up to 50KB
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>"
},
"name": "har_dump"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| clear | No | ||
| tab_id | Yes | ||
| max_str | No | ||
| max_list | No | ||
| max_entries | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||