upload_image
Upload a local image to OSS with deduplication, returning an OSS URL for use in blockJson or question images.
Instructions
把本地磁盘图片直传 OSS + 去重,返回可塞进 blockJson 图块 / ingest_question.images 的 ossUrl。
参数: local_path 本地绝对路径;asset_kind 资产类型(figure 等)。 返回: {ok, asset_id, oss_url, dedup}。
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": {
"local_path": "<local_path>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_kind | No | figure | |
| local_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||