file_upload
Uploads one or more files through a file input or file-chooser button, resolving relative paths under the session working directory; use absolute paths for files elsewhere.
Instructions
Upload files through a file input (or a button that opens a file chooser). Relative paths are taken under the session's working directory and may not leave it; a file anywhere else needs an absolute path. The reply echoes the resolved 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": {
"ref": "<ref>",
"paths": "<paths>"
},
"name": "file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Ref of the file input (read_page lists it with role "file") or of the element that opens the chooser. | |
| paths | Yes | Files to upload. | |
| tabId | No | Tab to act on, from tabs_context. Omitted: this session's active tab. Pass it always when several agents share the session. |