get_workitem_file
Download files or images from a current project work item, returning images directly and other files as Base64; optionally save them to a local path for later viewing.
Instructions
认证下载当前项目工作项中的文件或图片。图片直接返回图像内容;其他文件返回 Base64。可传 save_to 将文件保存到本地(目录或完整路径),返回的 path 可用 view_image 等工具查看。仅支持描述等富文本中的 fileIdentifier,最大 10 MiB。
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": {
"workitem_id": "<workitem_id>",
"file_id": "<file_id>"
},
"name": "get_workitem_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| save_to | No | 本地保存路径;目录或完整文件名。省略则直接返回文件内容。 | |
| workitem_id | Yes |