{"id":"text-lines-tail","version":"1.0.0","description":"Return the last n parsed lines with LF reconstruction.","supported_operations":["text lines tail","last n lines","tail lines"],"unsupported_operations":["bytes tail","follow","negative n"],"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 exceeds available lines, return all lines.","n = 0 yields empty text.","Trailing terminator follows the original when the last original line is included."],"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":"b\nc\n","lines_in":3,"lines_out":2}}],"execute_url":"/v1/tools/text-lines-tail/versions/1.0.0/execute"}