Skip to main content

Module curl

Module curl 

Source
Expand description

browser-control curl — invoke the system curl with browser credentials.

Unlike crate::cli::fetch, this request does not execute in a renderer. The selected browser supplies a snapshot of its cookie jar and User-Agent; the real curl process supplies transport, streaming, redirects, and every curl CLI option. Browser cookies are written to a mode-0600 temporary Netscape jar which is removed when the command finishes.

Constants§

MCP_RESPONSE_LIMIT
Maximum raw curl stdout returned inside an MCP tool result. File output selected by curl’s -o/--output does not pass through this buffer and is therefore unrestricted.

Functions§

run
CLI entry point. Curl owns stdin/stdout/stderr, so ordinary streaming and -o downloads behave exactly like invoking curl directly.