http_request
Send authenticated HTTP requests from the browser session, using the user's cookies to fetch protected content. Returns text inline up to a limit or saves binary responses like PDFs to a file.
Instructions
HTTP request sent from the browser, with the logged-in user's cookies: fetches what a server-side request gets a login page for (invoices, authenticated JSON, exports). Text bodies inline (capped by max_length); save_to writes the bytes — the way to read a PDF, since read_page returns nothing on a PDF tab.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute URL. Cookies are sent for its origin | |
| body | No | Request body (POST/PUT/PATCH) | |
| method | No | HEAD fetches headers only, without the body | GET |
| headers | No | Extra request headers | |
| save_to | No | Absolute path: write the response bytes here instead of returning them (PDF, images, archives) | |
| max_length | No | Max chars of body returned inline |