delete_assistant_file
Remove a specific file from an assistant in VoiceAI-MCP-VAVicky to manage file associations and maintain organized assistant configurations.
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)The switch case within the executeTool method that handles the 'delete_assistant_file' tool. It constructs the API endpoint URL using the provided assistant_id and file_id, and sets the HTTP method to DELETE to remove the specified file from the assistant.case 'delete_assistant_file': url = `${this.baseUrl}/assistants/${args.assistant_id}/files/${args.file_id}`; method = 'DELETE'; break;
- index.js:254-265 (registration)The tool registration entry in the ListToolsRequestSchema handler, which defines the tool name, description, and input schema for 'delete_assistant_file'.{ 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'] } },
- index.js:257-264 (schema)The 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'] }