Tidy Byte Tools

v0.1.3
io.github.tidybytetools/tidy-byte-tools Checked 23 hours ago Published 16 hours ago

Free local MCP server: fix JSON, PDF tables to CSV, docs to Markdown, hashes.

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

repair_json_text Repair broken JSON text

Repair broken or incomplete JSON, including output from language models. Use this when you have JSON in the conversation that may be missing quotes, have trailing commas, or be cut off. It is plain code, not an AI model: it can close missing brackets and fix common syntax issues, but it cannot invent the data you meant to write. Already-valid JSON is returned as-is, with wasValid true and repaired false. Do not use it for a file on disk (use repair_json_file for files). json_lines: if true, each non-empty line is a separate document. If false (default), the wh…

ParameterTypeDescription
text *stringThe JSON text to repair. May be one value, or several JSON Lines.
json_linesbooleanIf true, treat each non-empty line as its own JSON document.

repair_json_file Repair JSON in a local file

Read a local JSON file and repair it if it is broken or incomplete. Use this when the JSON is in a file on this computer, so you don't have to paste it. The file is only read, never changed. Files larger than 5 MB are rejected; use the Apify version for bigger jobs. Do not use it for files that are not JSON text. path: full path to a UTF-8 text file, up to 5 MB. json_lines: if true, each non-empty line is a separate document. If false (default), the whole text is tried as one JSON value first. Returns the same object as repair_json_text.

ParameterTypeDescription
path *stringFull path to a UTF-8 .json or .jsonl file, up to 5 MB.
json_linesbooleanIf true, treat each non-empty line as its own JSON document.

shape_text_to_json Turn text into JSON

Turn pasted text (key: value notes, CSV/TSV or a Markdown table) into typed JSON. Use this when you have plain-text records or a table in the conversation and need clean JSON you can trust, without guessing values yourself. It is plain code, not an AI model, so the same text always gives the same JSON and nothing is made up. Do not use it when the text is already JSON, is nested data, is app logs, or is a file on disk (use shape_file_to_json for files). format: "auto" (default) picks for you. Or force "kv" (key: value or key=value lines, a blank line starts a new reco…

ParameterTypeDescription
text *stringThe text to turn into JSON: key: value lines, CSV/TSV or a Markdown table.
formatstringInput format. "auto" picks for you; "kv" = key: value lines, "csv" = CSV/TSV, "markdown" = a pipe table.

shape_file_to_json Turn a text file into JSON

Read a local text file (key: value notes, .csv, .tsv or a Markdown table) and return typed JSON. Use this when the data is in a file on this computer, so you don't have to paste it. The file is only read, never changed. Do not use it for Excel (.xlsx), PDF or other binary files, for files that are already JSON, or for app logs. path: full path to a UTF-8 text file, up to 5 MB. format: "auto" (default) picks for you. Or force "kv" (key: value or key=value lines, a blank line starts a new record), "csv" (comma, semicolon, tab or | separated, first row is the header) or "mar…

ParameterTypeDescription
path *stringFull path to a UTF-8 text file (.txt, .csv, .tsv, .md), up to 5 MB.
formatstringInput format. "auto" picks for you; "kv" = key: value lines, "csv" = CSV/TSV, "markdown" = a pipe table.

base64_convert_text Encode or decode Base64 text

Encode pasted text to Base64, or decode Base64 (or a data URI) back to text. Use this when you have text or a Base64 string in the conversation. It is plain code, not an AI model, so the same input always gives the same output and nothing is made up. Do not use it for a file on disk (use convert_file for files), and do not use auto on short or unusual strings if you already know the direction — pass encode or decode instead. Returns a result object. Encoded results include "action", "base64", "bytesIn", and "dataUri" plus "mime" when data_uri is true. Decoded re…

ParameterTypeDescription
text *stringThe text to encode, or the Base64 (or data URI) to decode.
actionstringWhat to do. "auto" (default) decodes if the input looks like Base64, otherwise it encodes. Use "encode" or "decode" when you already know the direction.
data_uribooleanIf true, encoded results also include a data: URI.
url_safebooleanIf true, encode with - and _ instead of + and /. Decoding always accepts both.

base64_convert_file Encode or decode a local file as Base64

Read a local file and encode its bytes to Base64, or decode a Base64 text file. Use this when the data is in a file on this computer, so you don't have to paste it. The file is only read, never changed. Files larger than 5 MB are rejected; use the Apify version for bigger jobs. For decode, the file must be UTF-8 text containing Base64 (or a data URI), not a binary file. path: full path to a file, up to 5 MB. Returns the same result object as convert_text. If the decoded bytes are not UTF-8 text, "isText" is false and "text" is null.

ParameterTypeDescription
path *stringFull path to a local file, up to 5 MB. For decode, the file must be UTF-8 text of Base64.
actionstringWhat to do. "auto" (default) decodes if the input looks like Base64, otherwise it encodes. Use "encode" or "decode" when you already know the direction.
data_uribooleanIf true, encoded results also include a data: URI. The MIME type is guessed from the file name when we can.
url_safebooleanIf true, encode with - and _ instead of + and /. Decoding always accepts both.

hash_text Hash a text string

Hash pasted text with SHA-256, SHA-1, MD5, and optional SHA-512. Use this when you have text in the conversation and need its checksum. The text is hashed as UTF-8 bytes. It is plain code, not an AI model, so the same text always gives the same hashes. This tool does not look the hash up in a malware list or a password list. Do not use it for a file on disk (use hash_file for files). algorithms: a list from sha256, sha1, md5, sha512. Default is sha256, sha1 and md5. MD5 and SHA-1 are not safe for new security work; prefer SHA-256 or SHA-512 when you can.…

ParameterTypeDescription
text *stringThe text to hash. It is hashed as UTF-8 bytes.
algorithmsHash algorithms to compute. Default: sha256, sha1, md5. SHA-512 is optional. MD5 and SHA-1 are provided because people still need them for checks; they are not safe for new security work.
include_base64booleanIf true (default), each hash is returned as hex and as Base64. Hex is always included.

hash_file Hash a local file

Hash a local file's raw bytes with SHA-256, SHA-1, MD5, and optional SHA-512. Use this when the data is in a file on this computer, so you don't have to paste it. The file is only read, never changed. Files larger than 5 MB are rejected; use the Apify version for bigger jobs. This tool does not look the hash up in a malware list or a password list. path: full path to a file, up to 5 MB. algorithms: a list from sha256, sha1, md5, sha512. Default is sha256, sha1 and md5. MD5 and SHA-1 are not safe for new security work; prefer SHA-256 or SHA-512 when you can.…

ParameterTypeDescription
path *stringFull path to a local file, up to 5 MB. The raw file bytes are hashed, not a decoded string.
algorithmsHash algorithms to compute. Default: sha256, sha1, md5. SHA-512 is optional. MD5 and SHA-1 are provided because people still need them for checks; they are not safe for new security work.
include_base64booleanIf true (default), each hash is returned as hex and as Base64. Hex is always included.

chunk_markdown Split Markdown into chunks

Split a Markdown file or Markdown text into chunks by heading, for search, embeddings or RAG. Use this when you need a long Markdown document (docs, notes, a README) broken into pieces that each know where they came from. A chunk never mixes two sections. Each chunk has heading_path (like ["Guide", "Install"]), anchor (the GitHub-style #link), start_line and end_line (1-based, in the file), part and parts (when a big section had to be split), chars and text. Code blocks and tables are kept whole when they fit; when they don't, each piece gets the fence or table hea…

ParameterTypeDescription
limitintegerMost chunks to return in one call. Default 100.
max_charsintegerBiggest chunk size in characters (not tokens). Default 1500.
overlap_charsintegerCharacters repeated from the end of one part at the start of the next, only when a section is split. Must be at most half of max_chars. Default 0.
pathstringFull path to a local Markdown or text file (UTF-8, up to 10 MB). Leave empty if you pass text.
prefix_pathbooleanIf true, each chunk text starts with its heading path, like "Guide > Install".
startintegerFirst chunk number to return (1 = the first). Use next_start from the last call to get more.
textstringMarkdown text to use instead of a file. Leave empty if you pass path.

outline_markdown List Markdown headings

List every heading in a Markdown file or text, with its level, path, anchor, line number and size. Use this when you want a quick map of a long document before you read or chunk it, or to find the exact heading or anchor to pass to get_section. Headings inside code blocks and YAML front matter are ignored. Both "# Title" and underlined (=== / ---) headings are found. Do not use it to get the text itself (use get_section or chunk_markdown). Returns {"source", "count", "headings": [{"level", "title", "path", "anchor", "line", "end_line", "chars"}]}. chars is the si…

ParameterTypeDescription
pathstringFull path to a local Markdown or text file (UTF-8, up to 10 MB). Leave empty if you pass text.
textstringMarkdown text to use instead of a file. Leave empty if you pass path.

get_section Get one Markdown section

Return the text of one section of a Markdown file or text, found by heading title or anchor. Use this when you only need one part of a long document, like the "Install" section of a README, so you don't have to read the whole file. If two headings have the same title, the first one is returned and "matches" tells you how many there are; use the anchor (from outline_markdown) to pick another. Do not use it to split the whole document (use chunk_markdown). Returns {"title", "heading_path", "level", "anchor", "start_line", "end_line", "chars", "matches", "text"}. If…

ParameterTypeDescription
anchorstringAnchor to find, like "install" or "install-1" for the second "Install". Wins over heading.
headingstringHeading title to find, like "Install". Not case sensitive. Leave empty if you pass anchor.
include_subsectionsbooleanIf true (default), include the smaller headings under it.
pathstringFull path to a local Markdown or text file (UTF-8, up to 10 MB). Leave empty if you pass text.
textstringMarkdown text to use instead of a file. Leave empty if you pass path.

save_chunks_jsonl Save chunks to a JSONL file

Split a Markdown file into chunks and save them as a JSONL file (one chunk per line). Use this when the chunks are going into a search index, vector database or another program, and you want a file instead of a long chat reply. The chunks are the same as chunk_markdown gives. It writes only the one .jsonl file and replaces it if it is already there. It never changes the Markdown file. Do not use it to look at chunks in the chat (use chunk_markdown). Returns {"output_path", "chunks", "bytes", "biggest_chunk_chars"}.

ParameterTypeDescription
path *stringFull path to the local Markdown file to split (UTF-8, up to 10 MB).
max_charsintegerBiggest chunk size in characters (not tokens). Default 1500.
output_pathstringWhere to save. Must end in .jsonl. Default: next to the input, as NAME.chunks.jsonl.
overlap_charsintegerCharacters repeated from the end of one part at the start of the next, only when a section is split. Must be at most half of max_chars. Default 0.
prefix_pathbooleanIf true, each chunk text starts with its heading path, like "Guide > Install".

convert_to_markdown Convert PDF or HTML to Markdown

Turn a local text PDF or saved HTML file into clean Markdown. Use this when you want to read, quote, summarize or index a document as text, for example before RAG chunking or pasting into a prompt. Tables are kept as Markdown tables. Do not use it for scanned PDFs or photos (there is no OCR), for live web URLs (save the page as .html first), or when you only need the tables as CSV data (use a PDF table extractor instead). path: full path to a .pdf or .html file on this computer. tables: PDF tables. "lines" (default) finds tables with border lines, "text" also trie…

ParameterTypeDescription
path *string
output_pathstring
tablesstring

extract_pdf_tables Extract PDF tables to CSV

Pull the tables out of a local text PDF. Use this when you need the rows and columns of a table from a PDF on this computer, for example to load them into a spreadsheet, pandas or a database. Do not use it for scanned PDFs or photos (there is no OCR), for PDFs on the web (download the file first), or when you want the whole document as text (use a PDF-to-Markdown or text tool instead). path: full path to a PDF on this computer. pages: optional, like "1,3-5". Empty means all pages. strategy: "auto" (default, tries borders first, then spacing), "lines" (tables w…

ParameterTypeDescription
path *string
output_dirstring
pagesstring
strategystring