tdx-ticket-feed-get
Retrieve comments and activity feed for a specific TDX ticket to track updates and discussions in IT service management workflows.
Instructions
Get the feed/comments for a TDX ticket
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | TDX app ID (defaults to env TDX_APP_ID) | |
| id | Yes | Ticket ID |
Implementation Reference
- src/tools/tickets.ts:152-168 (handler)The implementation of the `tdx-ticket-feed-get` tool, which registers the tool handler and uses the TDX client to fetch feed data from the API.
server.tool( "tdx-ticket-feed-get", "Get the feed/comments for a TDX ticket", { appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"), id: z.number().describe("Ticket ID"), }, async (params) => { const app = params.appId ?? defaultAppId; try { const result = await client.get(`/${app}/tickets/${params.id}/feed`); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );