create_project_note_comment
Post a comment to a specific note in a Repsona project. Use project ID and note ID to add or reply to note comments.
Instructions
指定したプロジェクト内のノートにコメントを投稿します
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | プロジェクトID | |
| noteId | Yes | ノートID | |
| comment | Yes | コメント内容 | |
| parent | No | 返信先コメントID |
Implementation Reference
- index.js:629-642 (registration)Tool registration in ListToolsRequestSchema handler - defines the tool name, description, and input schema for create_project_note_comment
{ name: 'create_project_note_comment', description: '指定したプロジェクト内のノートにコメントを投稿します', inputSchema: { type: 'object', properties: { projectId: { type: 'string', description: 'プロジェクトID' }, noteId: { type: 'string', description: 'ノートID' }, comment: { type: 'string', description: 'コメント内容' }, parent: { type: 'number', description: '返信先コメントID' }, }, required: ['projectId', 'noteId', 'comment'], }, }, - index.js:1266-1276 (handler)Handler logic in CallToolRequestSchema switch-case - extracts args and calls the API method createProjectNoteComment
case 'create_project_note_comment': const { projectId: commentProjectId, noteId: commentNoteId, ...commentData } = args; const newNoteComment = await this.repsonaAPI.createProjectNoteComment(commentProjectId, commentNoteId, commentData); return { content: [ { type: 'text', text: `プロジェクト内のノートにコメントが投稿されました: ${JSON.stringify(newNoteComment, null, 2)}`, }, ], }; - index.js:237-239 (helper)RepsonaAPI helper method that makes the actual HTTP POST request to the Repsona API to create a note comment
async createProjectNoteComment(projectId, noteId, comment) { return this.makeRequest(`/project/${projectId}/note/${noteId}/note_comment`, 'POST', comment); }