upload_file
Attach a local file to a file upload WITHOUT the OS file picker (for uploading a photo in a chat, a profile picture, etc.; do not try to set a file input with execute_js, it cannot work). Best: pass the selector of the <input type=file> itself (find it with execute_js, e.g. document.querySelector("input[type=file]"); it is often hidden) and Dea sets the file directly. If you only have the upload button, pass that and Dea clicks it and fills the dialog it opens.
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.
{
"selector": "input[type=file]",
"path": "/absolute/path/to/example.png"
}Usage notes#
Use an existing file on Dea's computer and an observed upload target. Selecting a file can cause the website to upload it immediately.
Result#
Attaches the local file to the resolved upload flow and reports the result.
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 | Yes | The <input type=file> (preferred, often hidden), or the button that opens the picker |
path | string | Yes | Absolute path to the local file to upload |
frame | string | No | Act inside an iframe: selector of the <iframe> element (find_elements/read_page/get_page_text list them). Nested frames chain with " >> ", e.g. "#checkout >> iframe[name=card]". minLength: 1 |
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": {
"type": "string",
"description": "The <input type=file> (preferred, often hidden), or the button that opens the picker"
},
"path": {
"type": "string",
"description": "Absolute path to the local file to upload"
},
"frame": {
"description": "Act inside an iframe: selector of the <iframe> element (find_elements/read_page/get_page_text list them). Nested frames chain with \" >> \", e.g. \"#checkout >> iframe[name=card]\".",
"type": "string",
"minLength": 1
},
"tab": {
"description": "Tab name or id in your workspace; does not change the visible tab.",
"type": "string",
"minLength": 1
}
},
"required": [
"selector",
"path"
],
"additionalProperties": false
}Related documentation#
Reference conventions · Agent operating guide · Troubleshooting