Pick image
pick_imageOpen PerfectVector's file picker in the chat, for a file on the user's computer.
Use it only when the chat can't pass the user's file to tools (Claude chat today) or no image was given, and the user has no link to it. If your host can't show PerfectVector's picker (a terminal, for example), don't call this: upload the file with create_image_upload_link, or pass a public link to check_price. The picker shows the price and the balance; choosing the file is the user's OK to spend 1 credit, and the picker converts it and shows the SVG with a Download button. While it is open, call nothing else and end your turn. Later, get_svg with no ID finds the result.
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": "pick_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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. | |
| next_action | Yes | What to do next; guidance, never spending permission. | |
| request_key | No | ||
| conversion_id | No | ||
| price_credits | No | ||
| credits_charged | No | Credits charged by this call only. | |
| credits_available | No | The balance afterwards. | |
| retry_after_seconds | No |