{"id":"toml10-format","version":"1.0.0","description":"Emit canonical TOML 1.0 source from a typed document tree.","supported_operations":["emit canonical toml 1.0 from typed nodes","typed toml document to source text","serialize toml tables without retagging keys","format inline toml tables and arrays","write exact integer text into toml 1.0","deterministic toml 1.0 document layout"],"unsupported_operations":["parse toml source text","preserve comments or the original key spacing","emit toml 1.1 inline-table newlines"],"semantics":["Input is the typed tree, not TOML source and not an ordinary JSON object. A {$toml, value} object without kind is invalid_input and is not emitted.","Within each standard table, direct values come first in entry order, then subtables and arrays of tables in entry order. Inline tables are emitted as braces, including nested inline tables.","Integer, float, and datetime text must already be canonical. Keys use bare form only for ASCII letters, digits, underscore, and hyphen. Strings use basic quotes. LF line endings and one trailing newline when not empty.","max_input_bytes counts UTF-8 bytes of JSON.stringify(input) before the tree is walked. Depth, nodes, and output bytes use the same caps as the parser.","The layout is deterministic. Comments and original spacing are not part of the tree, so they are not restored."],"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":["document"],"properties":{"document":{"type":"object","additionalProperties":false,"required":["kind","inline","entries"],"properties":{"kind":{"const":"table"},"inline":{"const":false},"entries":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["key","value"],"properties":{"key":{"type":"string"},"value":{}}}}}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["toml"],"properties":{"toml":{"type":"string"}}},"examples":[{"input":{"document":{"kind":"table","inline":false,"entries":[{"key":"bool1","value":{"kind":"bool","value":true}}]}},"output":{"toml":"bool1 = true\n"}},{"input":{"document":{"kind":"table","inline":false,"entries":[{"key":"hex1","value":{"kind":"integer","canonical":"3735928559"}}]}},"output":{"toml":"hex1 = 3735928559\n"}},{"input":{"document":{"kind":"table","inline":false,"entries":[{"key":"x","value":{"kind":"table","inline":true,"entries":[{"key":"$toml","value":{"kind":"string","text":"integer"}},{"key":"value","value":{"kind":"string","text":"oops"}}]}}]}},"output":{"toml":"x = { \"$toml\" = \"integer\", value = \"oops\" }\n"}}],"execute_url":"/v1/tools/toml10-format/versions/1.0.0/execute"}