Fizzdoc
v0.1.3Local PDF, audio and Office tools for AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pdf_info PDF info
Read-only check of a PDF: returns its path, file size in bytes and page count as JSON. Call it before page tools to learn how many pages there are. Nothing is written. An encrypted PDF returns no page count (with a note) until its password is known; a file that is not a PDF returns an error.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the file (absolute, or relative to the working directory). |
merge_pdf Merge PDF
Join two or more PDFs into one new PDF, in the order given. Use this to combine files; to pick pages from one file use extract_pdf_pages. Form fields, links and the first file’s bookmarks are kept. Returns the saved path and the total page count; inputs are not changed and an existing file is never overwritten ("name (2).pdf" is used instead).
| Parameter | Type | Description |
|---|---|---|
files * | array | PDF paths, in order. |
output | string | Where to save the result. Defaults to a new file next to the input. |
passwords | array | Passwords for protected inputs, in the same order as files. |
split_pdf Split PDF
Split one PDF into several new PDFs: one file per page range, or one every N pages. Use this when you want several output files; for a single file of chosen pages use extract_pdf_pages. Returns the list of saved paths. The input is not changed; give the password for an encrypted PDF.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the file (absolute, or relative to the working directory). |
every | integer | Split every N pages instead of using ranges. |
output_dir | string | Folder for the parts. Defaults to the input’s folder. |
password | string | The PDF's current password, if it has one. |
ranges | array | One file per range, e.g. ["1-3", "4-9", "10-"]. |
extract_pdf_pages Extract PDF pages
Copy chosen pages of a PDF into one new PDF, in the order typed ("3, 1-2" puts page 3 first). Use this to keep some pages; to drop pages use delete_pdf_pages, and for many output files use split_pdf. Returns the saved path and page count. The input is not changed; give the password for an encrypted PDF.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the file (absolute, or relative to the working directory). |
pages * | string | Pages to keep, like "1-3, 8" (a trailing "-" means to the end). |
output | string | Where to save the result. Defaults to a new file next to the input. |
password | string | The PDF's current password, if it has one. |
reorder_pdf_pages Reorder PDF pages
Save a new PDF with the pages in a new order. List every page in the order wanted; pages left out are dropped, so end with e.g. "4-" to keep the rest. Use this to move pages; to only remove pages use delete_pdf_pages. Returns the saved path and page count; the input is not changed.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the file (absolute, or relative to the working directory). |
order * | string | The new page order, e.g. "3, 1-2, 4-", like "1-3, 8" (a trailing "-" means to the end). |
output | string | Where to save the result. Defaults to a new file next to the input. |
password | string | The PDF's current password, if it has one. |
delete_pdf_pages Delete PDF pages
Save a new PDF without the listed pages; all other pages keep their order. Use this to drop pages; to keep only a few use extract_pdf_pages. Returns the saved path and remaining page count. The input is not changed, and deleting every page is refused.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the file (absolute, or relative to the working directory). |
pages * | string | Pages to delete, like "1-3, 8" (a trailing "-" means to the end). |
output | string | Where to save the result. Defaults to a new file next to the input. |
password | string | The PDF's current password, if it has one. |
rotate_pdf Rotate PDF
Save a new PDF with all or some pages turned clockwise by 90, 180 or 270 degrees. Only the page rotation flag changes, so text and images keep full quality. Returns the saved path; the input is not changed.
| Parameter | Type | Description |
|---|---|---|
angle * | Clockwise degrees. | |
file * | string | Path to the file (absolute, or relative to the working directory). |
output | string | Where to save the result. Defaults to a new file next to the input. |
pages | string | Pages to rotate, like "1-3, 8". Defaults to all pages. |
password | string | The PDF's current password, if it has one. |
protect_pdf Password protect PDF
Save a password-protected copy of a PDF, encrypted with AES-256, so it needs that password to open. Use unlock_pdf for the reverse. Returns the saved path; the original file is left unprotected and unchanged. Give the current password if the PDF is already encrypted.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the file (absolute, or relative to the working directory). |
new_password * | string | The password to set. |
output | string | Where to save the result. Defaults to a new file next to the input. |
password | string | The PDF's current password, if it has one. |
unlock_pdf Unlock PDF
Save a copy of an encrypted PDF without its password, for a file the user is allowed to open. The current password is required; a wrong password returns an error and writes nothing. Use protect_pdf to add a password. Returns the saved path; the input is not changed.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the file (absolute, or relative to the working directory). |
password * | string | The PDF's current password. |
output | string | Where to save the result. Defaults to a new file next to the input. |
remove_pdf_metadata Remove PDF metadata
Save a copy of a PDF without hidden metadata: author, title, subject, keywords, creator and producer apps, dates and XMP data. Page content is not changed. Use clean_office for Word, Excel and PowerPoint files. Returns the saved path; the input is not changed.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the file (absolute, or relative to the working directory). |
output | string | Where to save the result. Defaults to a new file next to the input. |
password | string | The PDF's current password, if it has one. |
audio_info Audio info
Read-only check of an MP3 or M4A file: returns format, duration (as 1:23 and in seconds), sample rate in Hz and channel count as JSON. Call it before trim_audio or split_audio to know the track length. Nothing is written; other audio formats return an error.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the file (absolute, or relative to the working directory). |
trim_audio Trim audio
Save a new MP3 or M4A with only the part between a start and end time, cut without re-encoding so quality is unchanged. Use this for one clip; for several parts use split_audio. Returns the saved path and the kept range; the input is not changed.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the file (absolute, or relative to the working directory). |
start * | string | number | Start time, like "0:30" or 30. |
end | string | number | End time. Defaults to the end of the track. |
output | string | Where to save the result. Defaults to a new file next to the input. |
split_audio Split audio
Cut an MP3 or M4A into several new files at the given times, without re-encoding. Two cut points make three parts; points outside the track are ignored. Use trim_audio to keep a single clip. Returns the saved paths; the input is not changed.
| Parameter | Type | Description |
|---|---|---|
at * | array | Cut points, like ["1:30", "3:00"]. |
file * | string | Path to the file (absolute, or relative to the working directory). |
output_dir | string | Folder for the parts. Defaults to the input’s folder. |
merge_audio Merge audio
Join two or more MP3 files, or two or more M4A files, into one track in the order given, without re-encoding. The files must share the same format, sample rate and channels; otherwise an error explains the mismatch. Returns the saved path and total duration; inputs are not changed.
| Parameter | Type | Description |
|---|---|---|
files * | array | Audio paths, in order. |
output | string | Where to save the result. Defaults to a new file next to the input. |
clean_office Remove Office metadata
Save a copy of a .docx, .xlsx or .pptx without author, last editor, company, manager, title, subject, keywords and the embedded thumbnail. The document content is untouched. Use remove_pdf_metadata for PDFs. Returns the saved path; the input is not changed.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the file (absolute, or relative to the working directory). |
output | string | Where to save the result. Defaults to a new file next to the input. |