download_file
Save a file FROM the page to disk: an image, an attachment, any media. The fetch runs in the page, so it uses the logged-in session and works for auth-gated media. Give the selector of an image/link/element, or a direct url. Saves under ~/Documents/Dea/Downloads/<date>/ unless name/dir is given.
Example#
Call this MCP tool with the argument object below. Replace illustrative IDs, selectors, local paths, and project URLs with values observed in your session.
{
"url": "https://example.com/",
"name": "example.html"
}Usage notes#
The source must be reachable from the current page's browser session and applicable fetch rules. Files persist after the tab closes.
Result#
Saves fetched page-session content to disk and returns its path, byte count, and replacement information where available.
Results arrive in MCP content blocks. Most structured results are JSON in text blocks; image tools can include image blocks. Handle errors and partial or truncated data. No formal output schema is declared for this tool.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
selector | string | No | An img, link, or element whose media to save |
url | string | No | A direct url to download instead of a selector |
name | string | No | Filename to save as (extension inferred if omitted) |
dir | string | No | Folder to save into (default ~/Documents/Dea/Downloads/<date>/) |
tab | string | No | Tab name or id in your workspace; does not change the visible tab. minLength: 1 |
Full input schema#
The schema includes nested shapes and constraints. Additional semantic constraints can apply at runtime; read the description and usage notes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"selector": {
"description": "An img, link, or element whose media to save",
"type": "string"
},
"url": {
"description": "A direct url to download instead of a selector",
"type": "string"
},
"name": {
"description": "Filename to save as (extension inferred if omitted)",
"type": "string"
},
"dir": {
"description": "Folder to save into (default ~/Documents/Dea/Downloads/<date>/)",
"type": "string"
},
"tab": {
"description": "Tab name or id in your workspace; does not change the visible tab.",
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}Related documentation#
Reference conventions · Agent operating guide · Troubleshooting