Numbers-LE

v2.8.0
io.github.nolindnaidoo/numbers-le Checked 4 hours ago Published 1 month ago

Extract numeric values from config files, data files and plain text.

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

extract_numbers

Extract every numeric value from a document. Parses JSON, YAML, CSV, TOML, INI and dotenv, and reads numeric literals in Python, Rust, Go, Java, Kotlin, C#, C, C++, JavaScript, TypeScript, SQL and shell — including hex, binary, octal, digit separators and type suffixes. Anything else is scanned as plain text, so a format is optional. Returns each number with the notation it was written in, in document order, and its 1-based line and column where the source says exactly where it is: JSON, the source languages and plain text. Parsed formats (YAML, TOML, CSV, INI, dotenv) carry no position.

ParameterTypeDescription
content *stringThe document text to scan.
dedupebooleanCollapse repeated values to their first occurrence.
filenamestringFilename used to infer the format when `format` is absent, e.g. "config.toml".
formatstringDocument format. Optional — an unrecognised or absent format scans the text directly.
maxResultsintegerCap on returned numbers (default 500). meta.truncated reports whether any were dropped.