delete_caption
Remove a caption track from a YouTube video by providing its track ID.
Instructions
Delete a caption track by ID. Use list_captions to find the track ID first.
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": {
"caption_id": "<caption_id>"
},
"name": "delete_caption"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption_id | Yes | Caption track ID to delete. |
Implementation Reference
- src/youtube/client.ts:292-296 (helper)YouTubeClient method that sends a DELETE request to the YouTube Data API v3 /captions endpoint with the caption ID.
deleteCaption(captionId: string): Promise<void> { const url = new URL(`${DATA_API}/captions`); url.searchParams.set("id", captionId); return this.request<void>(url.toString(), { method: "DELETE" }); }