Systemd directive list

systemd-directive-list · version 1.0.0 · Structured formats · free, no key needed

List systemd unit directives as words using syntax quoting, continuation, and resets.

Use when you need to: parse systemd unit directives · split a systemd unit setting into words · systemd unit file line continuation.

Decide before calling

Read the versioned contract and the supported scope below. Reuse systemd-directive-list@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use systemd-directive-list@1.0.0 for parse systemd unit directives. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "[Service]\nEnvironment=\"VAR1=word1 word2\" VAR2=word3 \"VAR3=$word 5 6\"\n"
}

Response:

{
  "result": {
    "sections": [
      {
        "name": "Service",
        "line": 1,
        "directives": [
          {
            "key": "Environment",
            "line": 2,
            "reset": false,
            "words": [
              "VAR1=word1 word2",
              "VAR2=word3",
              "VAR3=$word 5 6"
            ]
          }
        ],
        "lists": [
          {
            "key": "Environment",
            "words": [
              "VAR1=word1 word2",
              "VAR2=word3",
              "VAR3=$word 5 6"
            ]
          }
        ]
      }
    ]
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "systemd-directive-list",
  "version": "1.0.0",
  "input": {
    "text": "[Service]\nEnvironment=\"VAR1=word1 word2\" VAR2=word3 \"VAR3=$word 5 6\"\n"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/systemd-directive-list/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"[Service]\nEnvironment=\"VAR1=word1 word2\" VAR2=word3 \"VAR3=$word 5 6\"\n"}'

The machine-readable contract is at /v1/tools/systemd-directive-list/versions/1.0.0.

CLI

node cli.mjs run systemd-directive-list 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.