update_watching
Modify existing watch notes in Backlog to track project changes, update issue monitoring details, or adjust task observation records.
Instructions
Updates an existing watch note
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| watchId | Yes | Watch ID | |
| note | Yes | Updated note for the watch |
Implementation Reference
- src/tools/updateWatching.ts:14-32 (handler)The core handler implementation for the 'update_watching' tool. It defines the tool's metadata, input schema, output schema, and the async handler function that updates a watching list item using backlog.patchWatchingListItem.export const updateWatchingTool = ( backlog: Backlog, { t }: TranslationHelper ): ToolDefinition< ReturnType<typeof updateWatchingSchema>, (typeof WatchingListItemSchema)['shape'] > => { return { name: 'update_watching', description: t( 'TOOL_UPDATE_WATCHING_DESCRIPTION', 'Updates an existing watch note' ), schema: z.object(updateWatchingSchema(t)), outputSchema: WatchingListItemSchema, handler: async ({ watchId, note }) => backlog.patchWatchingListItem(watchId, note), }; };
- src/tools/updateWatching.ts:7-12 (schema)Zod schema definition for the input parameters of the update_watching tool: watchId (number) and note (string).const updateWatchingSchema = buildToolSchema((t) => ({ watchId: z.number().describe(t('TOOL_UPDATE_WATCHING_WATCH_ID', 'Watch ID')), note: z .string() .describe(t('TOOL_UPDATE_WATCHING_NOTE', 'Updated note for the watch')), }));
- src/tools/tools.ts:109-109 (registration)Registration of the updateWatchingTool into the 'issue' toolset group within the allTools export.updateWatchingTool(backlog, helper),