Numbers-LE
v2.8.0Extract 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.
| Parameter | Type | Description |
|---|---|---|
content * | string | The document text to scan. |
dedupe | boolean | Collapse repeated values to their first occurrence. |
filename | string | Filename used to infer the format when `format` is absent, e.g. "config.toml". |
format | string | Document format. Optional — an unrecognised or absent format scans the text directly. |
maxResults | integer | Cap on returned numbers (default 500). meta.truncated reports whether any were dropped. |