browser_set_files
browser_set_filesAttach local files to a browser file input by specifying absolute paths, target tab, and element ID for automated uploads.
Instructions
Set files on a file input element using absolute local paths.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tab_id": "<tab_id>",
"element_id": "<element_id>",
"files": "<files>"
},
"name": "browser_set_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| tab_id | Yes | ||
| frame_id | No | Chrome frame ID inside the tab from browser_get_frames. 0 is the top document, which is the default. | |
| element_id | Yes | Opaque element_id returned by browser_get_interactives. | |
| session_id | No | Session that owns the tab. Pass it on every call so the runtime can refuse a tab another session holds. | |
| session_name | No | Name for this conversation's Chrome tab group, so the tab bar reads as the task instead of a generated id. Sticky: pass it once when the name becomes clear, and again only to rename. |