assess_add_task_to_idea
Link an existing task to an idea in the Assess realm to organize tasks within project concepts using the ADD framework.
Instructions
Add an existing task to an idea in Assess realm.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskRecordName | Yes | Record name of the task | |
| ideaRecordName | Yes | Record name of the idea |
Implementation Reference
- src/index.ts:1355-1358 (handler)The core handler function that implements the tool logic. It simulates adding a task to an idea by returning a mock success message (in production, this would interact with CloudKit to update the idea's 'tasks' reference array).private async addTaskToIdea(taskRecordName: string, ideaRecordName: string) { // Mock adding task to idea via CloudKit return { content: [{ type: 'text', text: `Task ${taskRecordName} added to idea ${ideaRecordName}` }] }; }
- src/index.ts:365-376 (registration)Tool registration in the ListToolsRequestSchema response, defining the tool name, description, and input schema.{ name: 'assess_add_task_to_idea', description: 'Add an existing task to an idea in Assess realm.', inputSchema: { type: 'object', properties: { taskRecordName: { type: 'string', description: 'Record name of the task' }, ideaRecordName: { type: 'string', description: 'Record name of the idea' } }, required: ['taskRecordName', 'ideaRecordName'] } },
- src/index.ts:689-691 (handler)Dispatch handler in the CallToolRequestSchema switch statement that validates input arguments and invokes the main addTaskToIdea handler function.case 'assess_remove_task_from_project': this.validateArgs(args, ['taskRecordName', 'projectRecordName']); return await this.removeTaskFromProject(args.taskRecordName, args.projectRecordName);
- src/index.ts:368-375 (schema)Input schema definition for validating tool arguments: requires taskRecordName and ideaRecordName as strings.inputSchema: { type: 'object', properties: { taskRecordName: { type: 'string', description: 'Record name of the task' }, ideaRecordName: { type: 'string', description: 'Record name of the idea' } }, required: ['taskRecordName', 'ideaRecordName'] }
- src/index.ts:133-149 (helper)Type definition for Idea records in CloudKit, including the 'tasks' reference array that would be updated when adding a task to an idea.export interface ZenTaskticIdea { recordName?: string; recordType: 'Ideas'; // Note: entity name is 'Ideas' in Core Data fields: { ideaName: { value: string }; // Max 1500 chars, combines original title & body realmId: { value: number }; // Integer 16, default 0 (usually REALM_ASSESS_ID) uniqueId: { value: string }; // UUID lastModified: { value: number }; // Timestamp // References (relationships in Core Data) collection?: { value: CKReference }; // Reference to Collections record realm?: { value: CKReference }; // Reference to Realms record tasks?: { value: CKReference[] }; // Tasks derived from this idea // removed createdAt, use lastModified or CloudKit system creationDate }; }