Upload an image to a file input
upload_imageUpload a local image, or capture and upload a fresh tab screenshot, to a file-input element by ref for automated Chrome form workflows.
Instructions
Upload an image to a by ref. With path: uploads that local image. Without: captures a screenshot of the tab, writes it to a temp PNG, and uploads that. Requires the debugger tier.
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>",
"tabId": "<tabId>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | File-input element ref from read_page/find | |
| path | No | Local image path; omit to upload a fresh screenshot | |
| tabId | Yes | Target tab ID (must be in the MCP group) |