Upload Image/File to Project
stitch_upload_imageUploads a design file (PNG, JPG, WEBP, or HTML) to a Stitch project and creates new screen canvases from its contents, so agents can bring existing designs into Stitch.
Instructions
Upload a design file (PNG, JPG, WEBP, HTML) to a Stitch project. Creates new screen canvases from the file contents.
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": {
"projectId": "<projectId>",
"filePath": "<filePath>"
},
"name": "stitch_upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional title for the uploaded screen | |
| filePath | Yes | Absolute or relative path to the file (PNG, JPG, WEBP, HTML) | |
| projectId | Yes | Stitch project ID | |
| createScreenInstances | No | Whether to create screen instances from the upload |