upload_image
Uploads local images or files into a web page's file input or dispatches drag-and-drop file events to a target element or coordinate.
Instructions
Upload a local image or file into a page element (by ref) or dispatch a drag-and-drop file event onto a target coordinate/element.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref ID of the file input or drop target. | |
| tabId | No | Target tab ID (defaults to active managed tab). | |
| filePath | No | Absolute local path to a file to upload. | |
| filename | No | Filename to assign to the uploaded file (e.g., "screenshot.png"). | |
| mimeType | No | MIME type (e.g., "image/png"). Inferred automatically from extension if omitted. | |
| coordinate | No | [x, y] viewport coordinate of a drag-and-drop target. | |
| imageBase64 | No | Base64-encoded file contents (alternative to filePath). |