browser_save_blob
Run JavaScript in the page and save the result directly to a disk file, preventing corruption of large base64, HTML, or JSON blobs during transfer.
Instructions
Evaluate JavaScript in the page and write the result straight to a file on disk — the value itself never passes through this tool's response. Use this instead of browser_evaluate whenever you need to get a large/opaque blob (base64 image(s), a full page's HTML, a big JSON dump) out of the live page and into a request body: reading it via browser_evaluate and then re-typing/pasting it into another tool call's arguments (e.g. create_task's imagesBase64/htmlPageBase64) risks silently corrupting it — a dropped character or an unclosed quote partway through a multi-KB string merges what should be several array elements into one, with no clear error. Pass 'function' or 'expression' (same as browser_evaluate); pass encoding:'base64' when the value is a base64 string (a data:...;base64, prefix is stripped automatically) to write raw decoded bytes, or omit it to write the value as UTF-8 text (non-strings are JSON-stringified).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Output file path. | |
| world | No | Execution world. 'isolated' (default) = stealth, page globals hidden; 'main' = page's real world, page globals visible/callable. | |
| encoding | No | 'base64' decodes the evaluated string into raw bytes before writing. 'text' (default) writes UTF-8 (JSON-stringifying non-string results). | |
| function | No | ||
| expression | No |