delete_project_note
Remove a note from a project by specifying the project and note IDs.
Instructions
指定したプロジェクト内のノートを削除します
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | プロジェクトID | |
| noteId | Yes | ノートID |
Implementation Reference
- index.js:1233-1242 (handler)The handler for the 'delete_project_note' tool in the CallToolRequestHandler switch statement. It calls this.repsonaAPI.deleteProjectNote(args.projectId, args.noteId) and returns a success message.
case 'delete_project_note': await this.repsonaAPI.deleteProjectNote(args.projectId, args.noteId); return { content: [ { type: 'text', text: `プロジェクト内のノートID ${args.noteId} が削除されました`, }, ], }; - index.js:593-604 (schema)The tool registration (input schema and description) for 'delete_project_note' in the ListToolsRequestHandler. Defines projectId and noteId as required string parameters.
{ name: 'delete_project_note', description: '指定したプロジェクト内のノートを削除します', inputSchema: { type: 'object', properties: { projectId: { type: 'string', description: 'プロジェクトID' }, noteId: { type: 'string', description: 'ノートID' }, }, required: ['projectId', 'noteId'], }, }, - index.js:593-604 (registration)The tool is registered in the tools array returned by ListToolsRequestSchema handler under the name 'delete_project_note'.
{ name: 'delete_project_note', description: '指定したプロジェクト内のノートを削除します', inputSchema: { type: 'object', properties: { projectId: { type: 'string', description: 'プロジェクトID' }, noteId: { type: 'string', description: 'ノートID' }, }, required: ['projectId', 'noteId'], }, }, - index.js:225-227 (helper)The RepsonaAPI.deleteProjectNote method that makes the actual DELETE API request to /project/{projectId}/note/{noteId}.
async deleteProjectNote(projectId, noteId) { return this.makeRequest(`/project/${projectId}/note/${noteId}`, 'DELETE'); }