assess_add_task_to_project
Link an existing task to a specific project in the Assess realm, ensuring organized task management within the addTaskManager system. Requires task and project record names for integration.
Instructions
Add an existing task to a project in Assess realm.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectRecordName | Yes | Record name of the project | |
| taskRecordName | Yes | Record name of the task |
Implementation Reference
- src/index.ts:353-363 (registration)Registration of the 'assess_add_task_to_project' tool in the ListToolsRequestSchema handler, including the tool name, description, and input schema definition.{ name: 'assess_add_task_to_project', description: 'Add an existing task to a project in Assess realm.', inputSchema: { type: 'object', properties: { taskRecordName: { type: 'string', description: 'Record name of the task' }, projectRecordName: { type: 'string', description: 'Record name of the project' } }, required: ['taskRecordName', 'projectRecordName'] }
- src/index.ts:683-685 (handler)Dispatch handler in the CallToolRequestSchema switch statement that validates arguments and calls the addTaskToProject method.case 'assess_add_task_to_project': this.validateArgs(args, ['taskRecordName', 'projectRecordName']); return await this.addTaskToProject(args.taskRecordName, args.projectRecordName);
- src/index.ts:1350-1353 (handler)Core handler function implementing the tool logic. Currently a mock that returns a success message indicating the task was added to the project. In production, this would interact with CloudKitService to update the project's tasks reference field.private async addTaskToProject(taskRecordName: string, projectRecordName: string) { // Mock adding task to project via CloudKit return { content: [{ type: 'text', text: `Task ${taskRecordName} added to project ${projectRecordName}` }] }; }