upload_image
Upload a captured screenshot to file inputs or drag-and-drop targets on a webpage, using an element reference for hidden fields or coordinates for visible areas.
Instructions
Upload a previously captured screenshot to a file input or drag & drop target. Supports two approaches: (1) ref -- for targeting specific elements, especially hidden file inputs, (2) coordinate -- for drag & drop to visible locations like Google Docs. Provide either ref or coordinate, not both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element reference ID from read_page or find tools (e.g., "ref_1", "ref_2"). Use this for file inputs (especially hidden ones). Provide either ref or coordinate, not both. | |
| tabId | Yes | Tab ID where the target element is located. This is where the image will be uploaded to. | |
| imageId | Yes | ID of a previously captured screenshot (from the computer tool's screenshot action), e.g. "img_..." as reported in the screenshot result. | |
| filename | No | Optional filename for the uploaded file (default: "image.png"). | |
| coordinate | No | Viewport coordinates [x, y] for drag & drop to a visible location like Google Docs. Provide either ref or coordinate, not both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provenance | No | ||
| interactionReceipt | No |