Upload the image chosen in the picker
upload_picked_imageCard only: PerfectVector's picker uploads the file the user chose in it.
Models: never call this; use check_price, then convert_to_svg. The picker sends the chosen file under the key pick_image gave it; choosing the file is the user's OK to spend 1 credit, so this converts, waits and delivers the SVG.
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": {
"image_base64": "<image_base64>",
"picker_key": "<picker_key>"
},
"name": "upload_picked_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | No | ||
| picker_key | Yes | ||
| image_base64 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Set when the call could not proceed. | |
| status | No | ||
| message | Yes | The reply's text without its IDs and SVG text, for hosts that show only this. | |
| file_name | No | ||
| retryable | No | ||
| svg_bytes | No | ||
| path_count | No | ||
| svg_inline | No | The SVG text is in the reply's text, never in these fields. | |
| color_count | No | ||
| next_action | Yes | What to do next; guidance, never spending permission. | |
| request_key | No | ||
| download_url | No | ||
| conversion_id | No | ||
| price_credits | No | ||
| credits_charged | No | Credits charged by this call only. | |
| credits_available | No | The balance afterwards. | |
| download_expires_at | No | ||
| retry_after_seconds | No | ||
| ask_before_converting | No |