{"id":"systemd-env-format","version":"1.0.0","description":"Format assignments into canonical systemd EnvironmentFile text, one quoting mode per value.","supported_operations":["format a systemd environment file","write systemd EnvironmentFile text","quote a value for a systemd environment file","serialize systemd environment assignments","canonical systemd environmentfile line","render systemd env assignments as text","systemd environment file from key value pairs"],"unsupported_operations":["expand specifiers while writing an EnvironmentFile","split one formatted value into shell words","emit shell-joined quote pieces for one value"],"semantics":["Each value has one spelling. With no CR or LF it is unquoted: every backslash is doubled, each leading or trailing space or tab is prefixed by a backslash, and a value that starts with a quote is prefixed by a backslash on that quote. Interior spaces and interior quotes stay as themselves. A single backslash is therefore written as \\\\.","A value that contains CR or LF and no single quote is wrapped in single quotes and copied unchanged. If it also contains a single quote, it is wrapped in double quotes and only \\ \" ` and $ gain a backslash. A line break inside those quotes is a raw line break.","Assignments are written in input order, one record per item, LF between records, and a final LF when the list is not empty. Duplicate keys are kept. Parsing the text with systemd-env-parse returns the same keys, values, and order. max_output_bytes measures that text, not the JSON envelope."],"limits":{"max_assignments":128,"max_total_bytes":4096,"max_value_bytes":4096,"max_key_chars":128,"max_output_bytes":6000},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["assignments"],"properties":{"assignments":{"type":"array","maxItems":128,"items":{"type":"object","additionalProperties":false,"required":["key","value"],"properties":{"key":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"value":{"type":"string","maxLength":4096}}}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["text"],"properties":{"text":{"type":"string","description":"Canonical EnvironmentFile text using LF line breaks."}}},"examples":[{"input":{"assignments":[{"key":"PATH","value":"\\"}]},"output":{"text":"PATH=\\\\\n"}},{"input":{"assignments":[{"key":"MSG","value":"a\nb"}]},"output":{"text":"MSG='a\nb'\n"}},{"input":{"assignments":[{"key":"GREETING","value":"word1 word2"}]},"output":{"text":"GREETING=word1 word2\n"}}],"execute_url":"/v1/tools/systemd-env-format/versions/1.0.0/execute"}