delete_watching
Delete a watch from an issue by providing the watch ID, stopping notifications for that issue.
Instructions
Deletes a watch from an issue
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| watchId | Yes | Watch ID to delete | |
| organization | No | Optional organization name. Use list_organizations to inspect available organizations. |
Implementation Reference
- src/tools/deleteWatching.ts:28-29 (handler)The handler function for the 'delete_watching' tool. It calls backlog.deletehWatchingListItem(watchId) with the provided watchId.
handler: async ({ watchId }) => backlog.deletehWatchingListItem(watchId), }; - src/tools/deleteWatching.ts:7-11 (schema)Input schema for delete_watching: requires a watchId (number).
const deleteWatchingSchema = buildToolSchema((t) => ({ watchId: z .number() .describe(t('TOOL_DELETE_WATCHING_WATCH_ID', 'Watch ID to delete')), })); - Output schema (WatchingListItemSchema) for the tool response.
export const WatchingListItemSchema = z.object({ id: z.number(), resourceAlreadyRead: z.boolean(), note: z.string(), type: z.string(), issue: IssueSchema, lastContentUpdated: z.string(), created: z.string(), updated: z.string(), }); - src/tools/tools.ts:42-42 (registration)Import of deleteWatchingTool in the tools registry.
import { deleteWatchingTool } from './deleteWatching.js'; - src/tools/tools.ts:117-117 (registration)Registration of deleteWatchingTool in the 'watching' toolset group.
deleteWatchingTool(backlog, helper),