upload
Attach a local file to a file input element on a web page. Use for upload forms, image uploads, and document submissions by specifying the element selector and absolute file path.
Instructions
[Agent Browser] Upload a file to an element. file_path must be an absolute path to an existing file on the local system. Use for file upload forms, image uploads, document submissions.
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": {
"selector": "<selector>",
"file_path": "<file_path>"
},
"name": "upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |