assess_edit_task
Edit task content in the Assess realm, including updating task names and priority levels from 1 to 5.
Instructions
Edit task content in Assess realm (taskName, priority).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskRecordName | Yes | Record name of the task to edit | |
| taskName | No | Updated task name/description | |
| taskPriority | No | Updated task priority (1-5) |
Implementation Reference
- src/index.ts:939-946 (handler)The main handler function for the 'assess_edit_task' tool. It constructs a success message indicating updates to task name and/or priority. Currently implemented as a mock without actual CloudKit database operations.private async editTask(taskRecordName: string, taskName?: string, taskPriority?: number) { // Mock fetch & check realm (should be REALM_ASSESS_ID) // Mock update: console.log('Mock CloudKit: Editing Task', taskRecordName, { taskName, taskPriority }); let updateMsg = `Task ${taskRecordName} updated.`; if (taskName) updateMsg += ` Name set to "${taskName}".`; if (taskPriority) updateMsg += ` Priority set to ${taskPriority}.`; return { content: [{ type: 'text', text: updateMsg }] }; }
- src/index.ts:270-281 (schema)Input schema definition for the 'assess_edit_task' tool, specifying parameters: taskRecordName (required), taskName, and taskPriority (1-5). Part of the tool registration in ListToolsRequestSchema.name: 'assess_edit_task', description: 'Edit task content in Assess realm (taskName, priority).', inputSchema: { type: 'object', properties: { taskRecordName: { type: 'string', description: 'Record name of the task to edit' }, taskName: { type: 'string', description: 'Updated task name/description' }, taskPriority: { type: 'integer', minimum: 1, maximum: 5, description: 'Updated task priority (1-5)'}, }, required: ['taskRecordName'] } },
- src/index.ts:663-665 (registration)Tool dispatch/registration in the CallToolRequestSchema switch statement. Validates required args and calls the editTask handler.this.validateArgs(args, ['taskRecordName']); return await this.editTask(args.taskRecordName, args.taskName, args.taskPriority); case 'assess_create_project':