delete_watching
Remove a watch from a Backlog issue to stop receiving notifications about updates to that specific task.
Instructions
Deletes a watch from an issue
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| watchId | Yes | Watch ID to delete |
Implementation Reference
- src/tools/deleteWatching.ts:13-30 (handler)The deleteWatchingTool function defines the tool implementation, including the handler that executes backlog.deletehWatchingListItem(watchId) to delete the specified watching list item.export const deleteWatchingTool = ( backlog: Backlog, { t }: TranslationHelper ): ToolDefinition< ReturnType<typeof deleteWatchingSchema>, (typeof WatchingListItemSchema)['shape'] > => { return { name: 'delete_watching', description: t( 'TOOL_DELETE_WATCHING_DESCRIPTION', 'Deletes a watch from an issue' ), schema: z.object(deleteWatchingSchema(t)), outputSchema: WatchingListItemSchema, handler: async ({ watchId }) => backlog.deletehWatchingListItem(watchId), }; };
- src/tools/deleteWatching.ts:7-11 (schema)Zod schema definition for the input parameters of the delete_watching tool, requiring a numeric watchId.const deleteWatchingSchema = buildToolSchema((t) => ({ watchId: z .number() .describe(t('TOOL_DELETE_WATCHING_WATCH_ID', 'Watch ID to delete')), }));
- src/tools/tools.ts:110-110 (registration)The deleteWatchingTool is instantiated with the Backlog client and translation helper, and registered in the 'issue' toolset within the allTools function.deleteWatchingTool(backlog, helper),
- src/tools/tools.ts:39-39 (registration)Import of the deleteWatchingTool from its implementation file.import { deleteWatchingTool } from './deleteWatching.js';