apg_get_example
Fetch official source code example for an APG pattern, including HTML, CSS, and JS, to implement accessible widgets.
Instructions
Official example source for one APG demo: HTML plus linked CSS/JS (and placeholders for binary assets).
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": {
"patternId": "<patternId>",
"exampleSlug": "<exampleSlug>"
},
"name": "apg_get_example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | json: structured files array; markdown: one fenced block per file | json |
| patternId | Yes | ||
| exampleSlug | Yes | Example id, e.g. carousel-1-prev-next (see apg_get_pattern / apg_list_patterns) |