task_info
Retrieve detailed information for specific tasks by providing their IDs, enabling status tracking and management within the Task Manager MCP Server.
Instructions
Returns full details for requested tasks
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskIDs | Yes | A list of task IDs to retrieve information for |
Implementation Reference
- tools/task_info.ts:22-49 (handler)The main execution logic for the 'task_info' tool: retrieves tasks by IDs from taskDB, collects not found IDs, computes incomplete tasks in tree if applicable, returns structured content.export async function handleTaskInfo({ taskIDs }: TaskInfoArgs, taskDB: TaskDB, singleAgent: boolean) { const tasks = new Array<Task>() const notFoundTaskIDs = new Array<TaskID>() for (const taskID of taskIDs) { const task = taskDB.get(taskID) if (!task) { notFoundTaskIDs.push(taskID) continue } tasks.push(task) } const incompleteTaskIDs = notFoundTaskIDs.length === 0 ? taskDB.incompleteTasksInTree(taskIDs[0]).map((t) => t.taskID) : undefined const res = { tasks, notFoundTasks: notFoundTaskIDs, incompleteTasksIdealOrder: singleAgent ? incompleteTaskIDs : undefined, } return { content: [], structuredContent: res, } satisfies CallToolResult }
- tools/task_info.ts:7-9 (schema)Zod input schema for the task_info tool, requiring a non-empty array of task IDs.export const TaskInfoArgsSchema = z.object({ taskIDs: TaskIDSchema.array().min(1).describe('A list of task IDs to retrieve information for'), })
- tools/index.ts:39-42 (registration)Maps the TASK_INFO name to its handler and schema in the central toolHandlers() function, used for dispatching tool calls.[TASK_INFO]: { handler: handleTaskInfo, schema: TaskInfoArgsSchema, } satisfies ToolHandlerInfo,
- tools/task_info.ts:15-20 (registration)Tool metadata definition (name, title, description, inputSchema) included in the tools() array for MCP tool exposure.export const taskInfoTool = { name: TASK_INFO, title: 'Get task info', description: 'Returns full details for requested tasks', inputSchema: zodToJsonSchema(TaskInfoArgsSchema, { $refStrategy: 'none' }), }