Remove File from Session
pdf_merger_remove_fileRemove a specified PDF from an upload session. Permanently deletes the file from cloud storage using session and file IDs.
Instructions
Remove a single PDF file from an upload session on the PDF Merger service.
The file is permanently deleted from cloud storage. This operation cannot be undone.
Args:
session_id (string): UUID of the session containing the file.
file_id (string): UUID of the file to remove.
Returns (JSON): { "success": true }
Error Handling:
Session not found → 404 error
File not found in session → 404 error
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"file_id": "<file_id>"
},
"name": "pdf_merger_remove_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ID of the file to remove from the session. | |
| session_id | Yes | Session ID that contains the file. |