tooldash-mcp

v1.0.2
io.github.LassiB999/tooldash-mcp Checked 1 day ago Published 3 months ago

Offline PDF and text tools: merge, extract pages, inspect, clean text.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pdf_info Inspect a PDF

Report the page count, per-page dimensions and document metadata of a local PDF. Read-only: the file is never modified. Call this before merging or extracting so page numbers are known to be valid.

ParameterTypeDescription
path *stringThe PDF to inspect. Absolute, or relative to the client's working directory.

merge_pdfs Merge PDFs

Combine two or more local PDFs into a single file, in the order given. Runs entirely on this machine with pdf-lib — nothing is uploaded and no URL is fetched. Refuses to overwrite an existing output unless overwrite is true.

ParameterTypeDescription
inputPaths *arrayThe PDFs to merge, in the order they should appear in the result.
outputPath *stringWhere to write the merged PDF. Absolute, or relative to the client's working directory.
overwritebooleanReplace outputPath if a file is already there.

extract_pdf_pages Extract PDF pages

Write a selection of pages from a local PDF into a new file, leaving the original untouched. Pages are 1-based and may be given as a list and ranges, e.g. "1-3,7,10-12". Order is preserved, so "3,1" produces a two-page file in that order.

ParameterTypeDescription
inputPath *stringThe PDF to take pages from. Absolute, or relative to the client's working directory.
outputPath *stringWhere to write the extracted pages. Absolute, or relative to the client's working directory.
pages *string1-based page selection, e.g. "1-3,7,10-12". Ranges may descend ("5-1").
overwritebooleanReplace outputPath if a file is already there.

clean_text Clean and normalize text

Normalize messy text: collapse repeated spaces, strip trailing whitespace and invisible characters, unify line endings, and optionally collapse blank lines, convert smart punctuation to ASCII, or remove URLs. Runs entirely offline — nothing is uploaded and no network call is made.

ParameterTypeDescription
text *stringThe text to clean.
collapseBlankLinesbooleanCollapse runs of two or more blank lines into a single blank line.
normalizeQuotesbooleanReplace curly quotes, en/em dashes and ellipsis characters with their ASCII equivalents.
removeUrlsbooleanStrip every http/https URL from the text. Note: this removes ALL URLs — the server is offline and cannot tell a working link from a dead one.