update_task_comment
Update the text of an existing comment on a work item by providing the issue ID, comment ID, and new plain-text content. Enables correcting or revising project comments without recreating them.
Instructions
更新指定评论内容(纯文本)。
Args:
issue_id: 工作项 ID。
comment_id: 评论 ID。
content: 新的评论内容(纯文本)。
project: 项目标识符(可选)。可以是项目名称或 project_key;不传则使用环境变量 FEISHU_PROJECT_KEY 指定的默认项目。
work_item_type: 工作项类型名称(可选)。不传则使用默认类型。
user_key: (可选) 飞书用户标识符 (X-USER-KEY)。
Returns:
JSON 字符串。
成功时(success=true)data 格式:
{
"issue_id": int,
"comment_id": str
}
失败时返回纯文本错误信息(由 with_error_handling 统一处理),常见原因包括:
- comment_id 不存在
- 当前用户无权限编辑该评论
- 评论内容为空
Examples:
update_task_comment(issue_id=123, comment_id="c1", content="补充:已完成回归测试")
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": {
"issue_id": "<issue_id>",
"comment_id": "<comment_id>",
"content": "<content>"
},
"name": "update_task_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| project | No | ||
| issue_id | Yes | ||
| user_key | No | ||
| comment_id | Yes | ||
| work_item_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |