asana_get_task_stories
Retrieve comments and activity history for a specific Asana task to track progress and collaboration.
Instructions
Get comments and stories for a specific task
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | The task ID to get stories for | |
| opt_fields | No | Comma-separated list of optional fields to include |
Implementation Reference
- src/tool-handler.ts:182-188 (handler)The switch case in the tool_handler function that dispatches and executes the asana_get_task_stories tool by calling the Asana client method.case "asana_get_task_stories": { const { task_id, ...opts } = args; const response = await asanaClient.getStoriesForTask(task_id, opts); return { content: [{ type: "text", text: JSON.stringify(response) }], }; }
- src/asana-client-wrapper.ts:383-386 (helper)The AsanaClientWrapper method that performs the actual API call to retrieve stories for a task using the Asana SDK.async getStoriesForTask(taskId: string, opts: any = {}) { const response = await this.stories.getStoriesForTask(taskId, opts); return response.data; }
- src/tools/story-tools.ts:3-20 (schema)Defines the tool metadata, name, description, and input schema for validation.export const getStoriesForTaskTool: Tool = { name: "asana_get_task_stories", description: "Get comments and stories for a specific task", inputSchema: { type: "object", properties: { task_id: { type: "string", description: "The task ID to get stories for" }, opt_fields: { type: "string", description: "Comma-separated list of optional fields to include" } }, required: ["task_id"] } };
- src/tool-handler.ts:47-49 (registration)Imports the getStoriesForTaskTool for registration in the tools list.getStoriesForTaskTool, createTaskStoryTool } from './tools/story-tools.js';
- src/tool-handler.ts:93-93 (registration)Registers the tool in the exported tools array used by the MCP server.getStoriesForTaskTool,