delete_task
Remove a task from AI Note MCP Server by specifying its ID, performing a soft delete to maintain data integrity while managing task lists.
Instructions
Delete a task (soft delete)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Task ID to delete |
Implementation Reference
- lib/tools/shared-tools.js:139-142 (handler)Handler function for the 'delete_task' tool. It proxies the tool call to the apiClient, which likely handles the actual deletion logic.handler: async (args, { apiClient }) => { const result = await apiClient.callTool('delete_task', args); return result; // Return full result with { content: [...] } }
- lib/tools/shared-tools.js:86-101 (schema)Schema definition for the 'delete_task' tool, specifying the input schema that requires a task 'id'.function deleteTaskDefinition() { return { name: 'delete_task', description: 'Delete a task (soft delete)', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Task ID to delete' } }, required: ['id'] } }; }
- lib/tools/shared-tools.js:137-143 (registration)Registration of the 'delete_task' tool within the getSharedTools() array, including its definition and handler.{ definition: deleteTaskDefinition(), handler: async (args, { apiClient }) => { const result = await apiClient.callTool('delete_task', args); return result; // Return full result with { content: [...] } } },