{"id":"text-lines-count","version":"1.0.0","description":"Count exact line multiplicities in first-seen order.","supported_operations":["text lines count","count lines","line histogram"],"unsupported_operations":["trim","case fold","sort by count","locale"],"semantics":["Split on CR LF, LF, or CR. Do not treat other Unicode separators as line breaks.","A trailing terminator does not create an extra empty line.","Empty document -> zero lines, trailing_terminator false.","A document that is only a terminator -> one empty line, trailing_terminator true.","A document with no terminator -> last line kept, trailing_terminator false.","Preserve empty lines in the middle.","Output reconstruction uses LF. If the result has at least one line, append a trailing LF iff the selected window includes the original trailing terminator or includes a line that was followed by a separator in the source.","No trimming, case folding, Unicode normalization, or locale rules.","Each distinct line body gets a count of exact occurrences.","Items are emitted in first-seen order.","line values are the parsed bodies without terminators."],"limits":{"max_input_bytes":256000,"max_lines":10000},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["text"],"properties":{"text":{"type":"string","maxLength":256000}}},"output_schema":{"type":"object","additionalProperties":false,"required":["items","lines_in","unique"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["line","count"],"properties":{"line":{"type":"string"},"count":{"type":"integer"}}}},"lines_in":{"type":"integer"},"unique":{"type":"integer"}}},"examples":[{"input":{"text":"a\nb\na\n"},"output":{"items":[{"line":"a","count":2},{"line":"b","count":1}],"lines_in":3,"unique":2}}],"execute_url":"/v1/tools/text-lines-count/versions/1.0.0/execute"}