create_task
Generate tasks in AI Note by specifying content, due date, importance, and category. Enables task management through natural language integration with Claude Desktop.
Instructions
Create a new task in AI Note
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category_id | No | Category ID | |
| content | Yes | Task content | |
| due_date | No | Due date in ISO format | |
| is_important | No | Mark task as important |
Implementation Reference
- lib/tools/shared-tools.js:125-128 (handler)The handler function for the 'create_task' tool. It proxies the tool arguments to the backend API via apiClient.callTool('create_task', args) and returns the result.handler: async (args, { apiClient }) => { const result = await apiClient.callTool('create_task', args); return result; // Return full result with { content: [...] } }
- lib/tools/shared-tools.js:28-55 (schema)Schema definition for the 'create_task' tool, specifying the input parameters: content (required), is_important, due_date, category_id.function createTaskDefinition() { return { name: 'create_task', description: 'Create a new task in AI Note', inputSchema: { type: 'object', properties: { content: { type: 'string', description: 'Task content' }, is_important: { type: 'boolean', description: 'Mark task as important' }, due_date: { type: 'string', description: 'Due date in ISO format' }, category_id: { type: 'string', description: 'Category ID' } }, required: ['content'] } }; }
- lib/core/server-factory.js:17-23 (registration)Registers the shared tools (including 'create_task') into the MCP tool registry via registry.registerMany(getSharedTools()).function registerTools(registry, { includeChatGpt }) { registry.registerMany(getSharedTools()); if (includeChatGpt) { registry.registerMany(getChatGptTools()); } }
- lib/tools/shared-tools.js:123-129 (registration)The tool object for 'create_task' registered within the getSharedTools() array.{ definition: createTaskDefinition(), handler: async (args, { apiClient }) => { const result = await apiClient.callTool('create_task', args); return result; // Return full result with { content: [...] } } },