{"id":"text-indentation-detect","version":"1.0.0","description":"Detect whether a text uses tabs or spaces for indentation by counting lines.","supported_operations":["text indentation detect","detect indentation","check if text uses tabs or spaces"],"unsupported_operations":["detect indentation size","fix indentation","parse code structure"],"semantics":["Analyzes each line to determine its leading whitespace.","A line is \"tab_indented\" if it starts with one or more tabs and no spaces before the first non-whitespace character.","A line is \"space_indented\" if it starts with one or more spaces and no tabs before the first non-whitespace character.","A line is \"mixed_indented\" if it starts with a combination of tabs and spaces.","Empty lines and lines with no leading whitespace are ignored.","predominant is \"tabs\" if tab_indented_lines > space_indented_lines, \"spaces\" if space_indented_lines > tab_indented_lines, and \"none\" otherwise."],"limits":{"max_text_bytes":1048576,"max_output_bytes":1024},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["text"],"properties":{"text":{"type":"string","maxLength":1048576}}},"output_schema":{"type":"object","additionalProperties":false,"required":["tab_indented_lines","space_indented_lines","mixed_indented_lines","predominant"],"properties":{"tab_indented_lines":{"type":"integer","minimum":0},"space_indented_lines":{"type":"integer","minimum":0},"mixed_indented_lines":{"type":"integer","minimum":0},"predominant":{"type":"string","enum":["tabs","spaces","none"]}}},"examples":[{"input":{"text":"function foo() {\n\treturn 1;\n}"},"output":{"tab_indented_lines":1,"space_indented_lines":0,"mixed_indented_lines":0,"predominant":"tabs"}}],"execute_url":"/v1/tools/text-indentation-detect/versions/1.0.0/execute"}