{"id":"toml10-validate","version":"1.0.0","description":"Check a TOML 1.0 document and locate the first structural error.","supported_operations":["check toml 1.0 document structure","find toml duplicate keys and headers","reject extension of a closed inline table","toml 1.0 collision and type conflicts","locate a toml 1.0 syntax error","report toml inline table closure failures"],"unsupported_operations":["repair invalid toml","convert a toml document to json","check cargo or pyproject schema rules"],"semantics":["A well-typed TOML failure returns {valid:false, reason, line, column, message}. It does not throw.","Wrong types, missing or unknown fields, and lone surrogates throw invalid_input. Byte, depth, and node limits throw limit_exceeded.","A valid document returns valid true, null reason, line, and column, and an empty message. The first error wins. Lines and columns are 1-based, and a column counts Unicode code points.","The reason is one of syntax, duplicate_key, closed_inline_table, type_conflict, dotted_extends_header, out_of_range, invalid_number, invalid_datetime, invalid_escape, control_character.","Validation does not repair the text and does not convert it to JSON. The same text always returns the same report."],"limits":{"max_input_bytes":4096,"max_output_bytes":16384,"max_depth":8,"max_nodes":48},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["text"],"properties":{"text":{"type":"string"}}},"output_schema":{"type":"object","additionalProperties":false,"required":["valid","reason","line","column","message"],"properties":{"valid":{"type":"boolean"},"reason":{"type":["string","null"]},"line":{"type":["integer","null"],"minimum":1},"column":{"type":["integer","null"],"minimum":1},"message":{"type":"string"}}},"examples":[{"input":{"text":"bool1 = true\n"},"output":{"valid":true,"reason":null,"line":null,"column":null,"message":""}},{"input":{"text":"name = \"Tom\"\nname = \"Pradyun\"\n"},"output":{"valid":false,"reason":"duplicate_key","line":2,"column":1,"message":"key is already defined"}},{"input":{"text":"a = {}\n[a]\n"},"output":{"valid":false,"reason":"closed_inline_table","line":2,"column":1,"message":"inline table cannot be extended"}}],"execute_url":"/v1/tools/toml10-validate/versions/1.0.0/execute"}