tdx-kb-update
Update TeamDynamix knowledge base articles by providing article ID and field data to modify content and information.
Instructions
Update a TDX knowledge base article
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | TDX app ID (defaults to env TDX_APP_ID) | |
| id | Yes | KB article ID | |
| data | Yes | Article data (PascalCase TDX field names) |
Implementation Reference
- src/tools/kb.ts:72-89 (handler)The implementation of the "tdx-kb-update" tool handler, which uses the TDX client to perform a PUT request to update a knowledge base article.
server.tool( "tdx-kb-update", "Update a TDX knowledge base article", { appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"), id: z.number().describe("KB article ID"), data: z.record(z.unknown()).describe("Article data (PascalCase TDX field names)"), }, async (params) => { const app = params.appId ?? defaultAppId; try { const result = await client.put(`/${app}/knowledgebase/${params.id}`, params.data); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );