update_watching
Update the note associated with a watch in Backlog, specifying the watch ID and new note content.
Instructions
Updates an existing watch note
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| watchId | Yes | Watch ID | |
| note | Yes | Updated note for the watch | |
| organization | No | Optional organization name. Use list_organizations to inspect available organizations. |
Implementation Reference
- src/tools/updateWatching.ts:29-30 (handler)The handler function that executes the 'update_watching' tool logic. It calls backlog.patchWatchingListItem(watchId, note) to update an existing watch note.
handler: async ({ watchId, note }) => backlog.patchWatchingListItem(watchId, note), - src/tools/updateWatching.ts:7-12 (schema)Input schema definition using zod, defining 'watchId' (number) and 'note' (string) as the required parameters.
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/updateWatching.ts:5-5 (schema)Output schema import (WatchingListItemSchema) from backlogOutputDefinition.ts, defining the shape of the return value.
import { WatchingListItemSchema } from '../types/zod/backlogOutputDefinition.js'; - src/tools/tools.ts:41-41 (registration)Import of updateWatchingTool from the updateWatching module.
import { updateWatchingTool } from './updateWatching.js'; - src/tools/tools.ts:116-116 (registration)Registration of the 'update_watching' tool within the 'issue' toolset by calling updateWatchingTool(backlog, helper).
updateWatchingTool(backlog, helper),