上传 TAPD 缺陷附件
tapd_upload_bug_attachmentUpload files up to 250MB as attachments to TAPD bugs, supporting images, videos, and other types via base64 encoding.
Instructions
把文件上传到指定缺陷的附件区(支持 png/jpg/mp4 等任意类型,单文件 ≤250MB)。文件内容用 base64 传入(Agent 通常无本地路径)。录屏、视频等应走此工具而非内嵌描述。上传后可用 tapd_get_bugs 在附件区核对。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bug_id | Yes | TAPD 缺陷 ID(附件挂载的工作项) | |
| filename | Yes | 文件名,含后缀(如 capture.png、record.mp4) | |
| confirmed | Yes | 必须为 true,表示用户已明确确认上传该附件 | |
| file_base64 | Yes | 文件内容的 base64 编码,可带或不带 data:URI 前缀 | |
| content_type | No | 可选,文件 MIME 类型,如 image/png、video/mp4 | |
| workspace_id | Yes | TAPD 项目 ID(必填)。可先用 tapd_list_bugs / tapd_list_stories 跨项目查询,或 tapd_list_workspaces 获取目标项目 ID |