list_tasks
Retrieve and filter tasks from AI Note based on status, keyword search, or limit. Manage and organize tasks efficiently for enhanced productivity.
Instructions
List tasks from AI Note
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of tasks to return (default: 25, max: 500) | |
| search | No | Search keyword in task content | |
| status | No | Filter by task status |
Implementation Reference
- lib/tools/shared-tools.js:116-122 (handler)Handler function for the 'list_tasks' tool. Proxies the tool call to the backend service via apiClient.callTool, which sends a JSON-RPC request.{ definition: listTasksDefinition(), handler: async (args, { apiClient }) => { const result = await apiClient.callTool('list_tasks', args); return result; // Return full result with { content: [...] } } },
- lib/tools/shared-tools.js:3-26 (schema)Schema definition for the 'list_tasks' tool, including input schema with optional parameters for status, limit, and search.function listTasksDefinition() { return { name: 'list_tasks', description: 'List tasks from AI Note', inputSchema: { type: 'object', properties: { status: { type: 'string', enum: ['pending', 'completed'], description: 'Filter by task status' }, limit: { type: 'number', description: 'Maximum number of tasks to return (default: 25, max: 500)' }, search: { type: 'string', description: 'Search keyword in task content' } } } }; }
- lib/core/server-factory.js:17-23 (registration)Registration of shared tools (including 'list_tasks') into the ToolRegistry via registerMany(getSharedTools()). Called during server creation.function registerTools(registry, { includeChatGpt }) { registry.registerMany(getSharedTools()); if (includeChatGpt) { registry.registerMany(getChatGptTools()); } }
- lib/utils/api-client.js:61-71 (helper)Helper method 'callTool' on apiClient that implements the proxy to backend by posting JSON-RPC 'tools/call' request to /api/mcp endpoint.// JSON-RPC helper 메서드 추가 axiosInstance.callTool = async (toolName, arguments_) => { const rpcRequest = createToolCallRequest(toolName, arguments_); const response = await axiosInstance.post('/api/mcp', rpcRequest); if (response.data.error) { throw new Error(`JSON-RPC Error [${response.data.error.code}]: ${response.data.error.message}`); } return response.data.result; };