Read a Candor UI pattern
get_patternRead a pattern as Markdown: a common problem in agent UIs (approvals, traces, cost guards, …) and the components that solve it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>"
},
"name": "get_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The pattern's slug, as search_docs or suggest_components gives it. | |
| version | No | A release, e.g. "2.6.2": the page as that release published it, for a project that has that version installed. Default: the version the server's URL passes (`?kit=`, which `npx candor-ui mcp` writes from candor-lock.json), else the current docs. When that release's docs weren't kept, or the page isn't in them, the answer is the current page with a note saying so. |