delete_task_comment
Delete a specific comment from a project work item to remove outdated or incorrect feedback. Provide the issue and comment IDs; project and work item type are optional.
Instructions
删除指定评论。
Args:
issue_id: 工作项 ID。
comment_id: 评论 ID。
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:
delete_task_comment(issue_id=123, comment_id="c1")
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>"
},
"name": "delete_task_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | ||
| issue_id | Yes | ||
| user_key | No | ||
| comment_id | Yes | ||
| work_item_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |