Dea DardanicaDocumentation
Files, media, and handoffRead Markdown

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.

json
{
  "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#

download_file — table 1
ParameterTypeRequiredDescription
selectorstringNoAn img, link, or element whose media to save
urlstringNoA direct url to download instead of a selector
namestringNoFilename to save as (extension inferred if omitted)
dirstringNoFolder to save into (default ~/Documents/Dea/Downloads/<date>/)
tabstringNoTab 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.

json
{
  "$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
}

Reference conventions · Agent operating guide · Troubleshooting