tool-definitions.ts•1.09 kB
import { zodToJsonSchema } from 'zod-to-json-schema';
import { ToolDefinition } from '../../shared/types/tool-definition';
import {
ListWorkItemsSchema,
CreateWorkItemSchema,
UpdateWorkItemSchema,
ManageWorkItemLinkSchema,
GetWorkItemSchema,
} from './schemas';
/**
* List of work items tools
*/
export const workItemsTools: ToolDefinition[] = [
{
name: 'list_work_items',
description: 'List work items in a project',
inputSchema: zodToJsonSchema(ListWorkItemsSchema),
},
{
name: 'get_work_item',
description: 'Get details of a specific work item',
inputSchema: zodToJsonSchema(GetWorkItemSchema),
},
{
name: 'create_work_item',
description: 'Create a new work item',
inputSchema: zodToJsonSchema(CreateWorkItemSchema),
},
{
name: 'update_work_item',
description: 'Update an existing work item',
inputSchema: zodToJsonSchema(UpdateWorkItemSchema),
},
{
name: 'manage_work_item_link',
description: 'Add or remove links between work items',
inputSchema: zodToJsonSchema(ManageWorkItemLinkSchema),
},
];