delete_assistant_file
Remove a specific file from an assistant by specifying the assistant ID and file ID, ensuring precise file management within the VoiceAI-MCP-VAVicky server.
Instructions
Delete a specific file from an assistant
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assistant_id | Yes | Assistant ID | |
| file_id | Yes | File ID |
Implementation Reference
- index.js:578-581 (handler)Switch case in the executeTool method that configures the URL and HTTP method (DELETE) for deleting a specific file from an assistant via the Vavicky API.case 'delete_assistant_file': url = `${this.baseUrl}/assistants/${args.assistant_id}/files/${args.file_id}`; method = 'DELETE'; break;
- index.js:257-264 (schema)Input schema definition for the delete_assistant_file tool, specifying required parameters: assistant_id and file_id.inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, file_id: { type: 'string', description: 'File ID' } }, required: ['assistant_id', 'file_id'] }
- index.js:254-265 (registration)Tool registration in the ListToolsRequestSchema handler, including name, description, and input schema.{ name: 'delete_assistant_file', description: 'Delete a specific file from an assistant', inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, file_id: { type: 'string', description: 'File ID' } }, required: ['assistant_id', 'file_id'] } },