assess_archive_project_to_collection
Archive a project to a collection in the addTaskManager app to organize completed work and maintain a clear task management system.
Instructions
Archive a project to a collection.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectRecordName | Yes | Record name of the project | |
| collectionRecordName | Yes | Record name of the collection |
Implementation Reference
- src/index.ts:414-423 (registration)Tool registration including name, description, and input schema definition.name: 'assess_archive_project_to_collection', description: 'Archive a project to a collection.', inputSchema: { type: 'object', properties: { projectRecordName: { type: 'string', description: 'Record name of the project' }, collectionRecordName: { type: 'string', description: 'Record name of the collection' } }, required: ['projectRecordName', 'collectionRecordName'] }
- src/index.ts:1375-1377 (handler)The core handler function that executes the tool. Currently a mock implementation returning a success message; in production, it would interact with CloudKitService to update project references.private async archiveProjectToCollection(projectRecordName: string, collectionRecordName: string) { // Mock archiving project to collection via CloudKit return { content: [{ type: 'text', text: `Project ${projectRecordName} archived to collection ${collectionRecordName}` }] };
- src/index.ts:698-700 (registration)Dispatch handler in the switch statement that routes tool calls to the archiveProjectToCollection method.case 'assess_archive_project_to_collection': this.validateArgs(args, ['projectRecordName', 'collectionRecordName']); return await this.archiveProjectToCollection(args.projectRecordName, args.collectionRecordName);