get_file
Fetches a file from a URL and returns it in a format suitable for FastMcP.
This tool can be used to fetch any file type, including images, PDFs, etc. The framework will handle the encoding and packaging of the file.
Scope: one URL per call, with the result returned into the conversation.
For many URLs, a whole site, output written to a file or directory,
resumable jobs, or a scheduled re-run, use the ScrapingBee CLI instead —
scrapingbee scrape --input-file urls.txt --output-dir results,
scrapingbee crawl URL --save-pattern ..., scrapingbee schedule --every.
This server has no batch, crawl, file-output or scheduling equivalent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the file to fetch. | |
| device | No | desktop (default) or mobile. | desktop |
| cookies | No | Semicolon-separated cookies to send to the target. | |
| timeout | No | Request timeout in milliseconds (1000–140000, default 140000). | |
| render_js | No | Whether to use headless-browser rendering (default False). | |
| session_id | No | Integer 0–10000000 to reuse an IP for up to 5 minutes. | |
| country_code | No | ISO 3166-1 alpha-2 country code (e.g. "fr", "us") to route the request through an IP in that country. Only takes effect when premium_proxy is True. | |
| custom_google | No | Set to True if the url is a google domain in the following format: <subdomain>.google.<top-level-domain> (Example: translate.google.com, mail.google.com, www.google.co.in etc) | |
| premium_proxy | No | Whether to use a premium proxy for the request. Use it only if you are getting blocked by the website. |