babelwrap_upload
Upload files to web page file input elements using natural language descriptions or direct element IDs for precise targeting.
Instructions
Upload a file to a file input element on the page.
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": {
"session_id": "<session_id>",
"target": "<target>",
"file_base64": "<file_base64>",
"filename": "<filename>"
},
"name": "babelwrap_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The active session ID. | |
| target | Yes | Natural language description of the file input element. TIP: Pass an element ID from a previous snapshot to bypass LLM resolution entirely for instant, deterministic targeting. | |
| file_base64 | Yes | Base64-encoded file content. | |
| filename | Yes | The filename to use for the upload. | |
| compact | No | If True, return a compact snapshot with minimal whitespace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||