{"id":"text-lines-head","version":"1.0.0","description":"Return the first n parsed lines with LF reconstruction.","supported_operations":["text lines head","first n lines","head lines"],"unsupported_operations":["bytes head","negative n","follow file"],"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.","n is a JSON integer, 0 <= n <= max_lines.","If n is greater than the available line count, return all lines.","n = 0 yields empty text."],"limits":{"max_input_bytes":256000,"max_lines":10000},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["text","n"],"properties":{"text":{"type":"string","maxLength":256000},"n":{"type":"integer","minimum":0,"maximum":10000}}},"output_schema":{"type":"object","additionalProperties":false,"required":["text","lines_in","lines_out"],"properties":{"text":{"type":"string"},"lines_in":{"type":"integer"},"lines_out":{"type":"integer"}}},"examples":[{"input":{"text":"a\nb\nc\n","n":2},"output":{"text":"a\nb\n","lines_in":3,"lines_out":2}}],"execute_url":"/v1/tools/text-lines-head/versions/1.0.0/execute"}