create_project_note
Create a note in a specified project with name, description, tags, and parent note settings.
Instructions
指定したプロジェクト内にノートを作成します
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | プロジェクトID | |
| name | Yes | ノート名 | |
| description | No | ノートの内容 | |
| tags | No | タグID | |
| parent | No | 親ノートID | |
| addToBottom | No | 一番下に追加するかどうか |
Implementation Reference
- index.js:1209-1219 (handler)The handler for the 'create_project_note' tool in the CallToolRequestHandler switch statement. It extracts projectId and note data from args, calls createProjectNote on the API, and returns a success message with the created note.
case 'create_project_note': const { projectId: createProjectNoteId, ...noteData } = args; const newProjectNote = await this.repsonaAPI.createProjectNote(createProjectNoteId, noteData); return { content: [ { type: 'text', text: `プロジェクト内にノートが作成されました: ${JSON.stringify(newProjectNote, null, 2)}`, }, ], }; - index.js:561-576 (schema)The input schema definition for 'create_project_note' registered in ListToolsRequestSchema. Defines required properties: projectId (string), name (string), and optional: description, tags, parent, addToBottom.
{ name: 'create_project_note', description: '指定したプロジェクト内にノートを作成します', inputSchema: { type: 'object', properties: { projectId: { type: 'string', description: 'プロジェクトID' }, name: { type: 'string', description: 'ノート名' }, description: { type: 'string', description: 'ノートの内容' }, tags: { type: 'array', items: { type: 'number' }, description: 'タグID' }, parent: { type: 'number', description: '親ノートID' }, addToBottom: { type: 'boolean', description: '一番下に追加するかどうか' }, }, required: ['projectId', 'name'], }, }, - index.js:561-576 (registration)The tool 'create_project_note' is registered as part of the tools list returned by ListToolsRequestSchema handler.
{ name: 'create_project_note', description: '指定したプロジェクト内にノートを作成します', inputSchema: { type: 'object', properties: { projectId: { type: 'string', description: 'プロジェクトID' }, name: { type: 'string', description: 'ノート名' }, description: { type: 'string', description: 'ノートの内容' }, tags: { type: 'array', items: { type: 'number' }, description: 'タグID' }, parent: { type: 'number', description: '親ノートID' }, addToBottom: { type: 'boolean', description: '一番下に追加するかどうか' }, }, required: ['projectId', 'name'], }, }, - index.js:217-219 (helper)The RepsonaAPI.createProjectNote method that makes the actual API request to POST /project/{projectId}/note to create a note.
async createProjectNote(projectId, note) { return this.makeRequest(`/project/${projectId}/note`, 'POST', note); }