Strings-LE

v2.5.1
io.github.nolindnaidoo/string-le Checked 2 hours ago Published 1 month ago

Extract string 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_strings

Extract every string value from a document. Parses JSON, YAML, CSV, TOML, INI and dotenv; for any other format it falls back to quoted strings — single, double or backtick — so a format is optional but unquoted prose yields nothing. Returns the values themselves, in document order, not their positions.

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 falls back to extracting quoted strings.
maxResultsintegerCap on returned strings (default 500). meta.truncated reports whether any were dropped.
multilinebooleanFor a format nothing here parses, let a quoted run span lines, so a multi-line template literal or message is read too. Languages whose own strings span lines are read that way regardless.