update_task
Modify an existing task's details, including content, importance, or completion status, using the task ID to ensure accurate updates in AI Note MCP Server.
Instructions
Update an existing task
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| completed_at | No | Mark as completed (ISO format) or null to uncomplete | |
| content | No | New task content | |
| id | Yes | Task ID | |
| is_important | No | Update important status |
Input Schema (JSON Schema)
{
"properties": {
"completed_at": {
"description": "Mark as completed (ISO format) or null to uncomplete",
"type": "string"
},
"content": {
"description": "New task content",
"type": "string"
},
"id": {
"description": "Task ID",
"type": "string"
},
"is_important": {
"description": "Update important status",
"type": "boolean"
}
},
"required": [
"id"
],
"type": "object"
}
Implementation Reference
- lib/tools/shared-tools.js:132-135 (handler)Handler function for the 'update_task' tool. It forwards the arguments to apiClient.callTool('update_task') and returns the result.handler: async (args, { apiClient }) => { const result = await apiClient.callTool('update_task', args); return result; // Return full result with { content: [...] } }
- lib/tools/shared-tools.js:57-84 (schema)Tool definition function returning the name, description, and inputSchema for 'update_task'.function updateTaskDefinition() { return { name: 'update_task', description: 'Update an existing task', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Task ID' }, content: { type: 'string', description: 'New task content' }, is_important: { type: 'boolean', description: 'Update important status' }, completed_at: { type: 'string', description: 'Mark as completed (ISO format) or null to uncomplete' } }, required: ['id'] } }; }
- lib/tools/shared-tools.js:130-136 (registration)Registration of the 'update_task' tool within the getSharedTools() array, combining its definition and handler.{ definition: updateTaskDefinition(), handler: async (args, { apiClient }) => { const result = await apiClient.callTool('update_task', args); return result; // Return full result with { content: [...] } } },