open_task_details
Retrieve detailed information about a specific task using its unique taskId in the MCP TaskManager server. Use this tool to inspect task status, progress, and other relevant details during its lifecycle.
Instructions
Get details of a specific task by 'taskId'. This is for inspecting task information at any point.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes |
Implementation Reference
- index.ts:470-489 (handler)The main handler function that executes the tool logic: searches for the task by ID across all requests and returns its details including ID, title, description, status, and completion details if available.public async openTaskDetails(taskId: string) { for (const request of this.data.requests) { const task = request.tasks.find((t) => t.id === taskId); if (task) { return { message: `Task Details: ID: ${task.id} Title: ${task.title} Description: ${task.description} Status: ${task.approved ? "Approved" : task.done ? "Done" : "Pending"} ${ task.completedDetails ? `Completion Details: ${task.completedDetails}` : "" }`, }; } } throw new Error("Task not found"); }
- index.ts:62-64 (schema)Zod input schema for the open_task_details tool, validating a required 'taskId' string parameter.const OpenTaskDetailsSchema = z.object({ taskId: z.string(), });
- index.ts:170-174 (registration)Tool registration in the listTools() method, defining the tool's name, description, and input schema.{ name: "open_task_details", description: "Get details of a specific task.", inputSchema: OpenTaskDetailsSchema, },
- index.ts:247-253 (handler)Dispatch handler in callTool() switch statement: validates input parameters using the schema and invokes the specific openTaskDetails method.case "open_task_details": { const parsed = OpenTaskDetailsSchema.safeParse(parameters); if (!parsed.success) { throw new Error(`Invalid parameters: ${parsed.error}`); } return this.openTaskDetails(parsed.data.taskId); }