Mustache variables list

mustache-variables-list · version 1.0.0 · Developer tools · free, no key needed

List the names and partials a Mustache template references, with tag kind, line, column and enclosing sections.

Use when you need to: list variables in a mustache template · find mustache template placeholders · extract mustache tag names.

Decide before calling

Read the versioned contract and the supported scope below. Reuse mustache-variables-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 mustache-variables-list@1.0.0 for list variables in a mustache template. 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:

{
  "template": "\"{{#a}}{{b.c.d.e.name}}{{/a}}\" == \"Phil\""
}

Response:

{
  "result": {
    "references": [
      {
        "partial": null,
        "kind": "section",
        "name": "a",
        "line": 1,
        "column": 2,
        "enclosing": []
      },
      {
        "partial": null,
        "kind": "variable",
        "name": "b.c.d.e.name",
        "line": 1,
        "column": 8,
        "enclosing": [
          "#a"
        ]
      }
    ],
    "names": [
      "a",
      "b.c.d.e.name"
    ],
    "root_names": [
      "a"
    ],
    "partials_referenced": [],
    "partials_missing": []
  }
}

How to call it

MCP

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

{
  "id": "mustache-variables-list",
  "version": "1.0.0",
  "input": {
    "template": "\"{{#a}}{{b.c.d.e.name}}{{/a}}\" == \"Phil\""
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/mustache-variables-list/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"template":"\"{{#a}}{{b.c.d.e.name}}{{/a}}\" == \"Phil\""}'

The machine-readable contract is at /v1/tools/mustache-variables-list/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.