assess_archive_task_to_collection
Archive a task to a collection in the addTaskManager app to organize completed or inactive items within the Assess phase of the ADD framework.
Instructions
Archive a task to a collection.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskRecordName | Yes | Record name of the task | |
| collectionRecordName | Yes | Record name of the collection |
Implementation Reference
- src/index.ts:695-697 (registration)Tool registration in the CallToolRequestSchema switch statement, dispatching to the handler method.case 'assess_archive_task_to_collection': this.validateArgs(args, ['taskRecordName', 'collectionRecordName']); return await this.archiveTaskToCollection(args.taskRecordName, args.collectionRecordName);
- src/index.ts:402-412 (registration)Tool registration in ListToolsRequestSchema including name, description, and input schema.name: 'assess_archive_task_to_collection', description: 'Archive a task to a collection.', inputSchema: { type: 'object', properties: { taskRecordName: { type: 'string', description: 'Record name of the task' }, collectionRecordName: { type: 'string', description: 'Record name of the collection' } }, required: ['taskRecordName', 'collectionRecordName'] } },
- src/index.ts:1370-1373 (handler)The main handler function implementing the tool logic. Currently a mock that returns a success message; in production would interact with CloudKitService.private async archiveTaskToCollection(taskRecordName: string, collectionRecordName: string) { // Mock archiving task to collection via CloudKit return { content: [{ type: 'text', text: `Task ${taskRecordName} archived to collection ${collectionRecordName}` }] }; }
- src/index.ts:404-410 (schema)Input schema definition for the tool, specifying required parameters and types.inputSchema: { type: 'object', properties: { taskRecordName: { type: 'string', description: 'Record name of the task' }, collectionRecordName: { type: 'string', description: 'Record name of the collection' } }, required: ['taskRecordName', 'collectionRecordName']