open_task_details
Retrieve detailed information about a specific task using its taskId to inspect status, progress, and execution data within the task management system.
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 core handler function that implements the logic for the 'open_task_details' tool. It searches all requests for the task by ID and returns formatted 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 schema defining the input parameters for the 'open_task_details' tool, which requires a 'taskId' string.const OpenTaskDetailsSchema = z.object({ taskId: z.string(), });
- index.ts:170-174 (registration)Tool registration in the listTools() method, defining the name, description, and input schema for 'open_task_details'.{ name: "open_task_details", description: "Get details of a specific task.", inputSchema: OpenTaskDetailsSchema, },
- index.ts:247-253 (registration)Dispatcher case in callTool() method that validates input using the schema and delegates to the openTaskDetails handler.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); }