Agents

Section profile (--sections)

culm mcp --sections (or sections: true in createMcpServer⁠) exposes five tools: describe⁠, write⁠, find⁠, measure and build⁠. write is the checked JSX, HTML/CSS and JSON write of the general server, without ops (refused as INVALID_OPERATION⁠). It measures the pages it wrote (classes 1 and 2) and replies with a short receipt instead of the full report:

{
  "revision": 3,
  "roots": ["home:hero"],
  "issues": [
    {
      "check": "raw-colour",
      "page": "home",
      "node": "s1",
      "at": "1280",
      "fix": "Use a site colour by name, so dark mode follows."
    }
  ],
  "moreIssues": true,
  "measurement": "complete"
}
  • issues⁠: at most 3, one per check, each with the first node and a fix of at most 220 characters. moreIssues is true when more findings exist than the issues shown (or the measurement was cut); call measure for them.

  • measurement⁠: complete⁠, partial (cut) or incomplete (a cell was not measured, or measuring failed; problem says why).

  • measuredRevision appears only when the measurement ran at a different revision from the write. replayed⁠, warningCount and warning appear when they apply.

at is the width the finding was measured at. describe returns its full reply in this profile. --sections and --full exclude each other.

Edit this page on GitHub