image_put
Saves base64-encoded image bytes (PNG, JPEG, GIF, WebP) into the local temp folder and returns the absolute path, using chunked uploads for larger images.
Instructions
Aiterm同士の中継用。画像のバイト列(base64、png/jpeg/gif/webp、全体で25 MiBまで)をこの端末の一時フォルダへ保存し、その絶対パスを返す。1通は10 MiB未満に収めるため、5 MiBを超える画像は upload_id(UUID)・offset(受け取り済みのバイト数)・final で順に送る。呼び手は pty_send の image を使い、直接は呼ばない。
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": {
"data_base64": "<data_base64>"
},
"name": "image_put"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| final | No | 分けて送る時、最後の一片ならtrue(この時に画像かを見て名前を付ける) | |
| offset | No | 分けて送る時、この一片の前までに受け取ったバイト数(一致しなければ IMAGE_UPLOAD_OFFSET) | |
| upload_id | No | 分けて送る時の組の印(UUID) | |
| data_base64 | Yes | 画像のバイト列(base64)。分けて送る時はその一片 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| bytes | No | ||
| schema | Yes | ||
| received | No | ||
| mime_type | No | ||
| upload_id | No |