apg_semantic_search
Search WAI-ARIA Authoring Practices patterns and examples using natural language. Returns relevant chunks with pattern IDs for accessible widget guidance.
Instructions
RAG: natural-language search over APG pattern Markdown and example source text. Returns the most similar chunks with patternId (and example slug when applicable). Follow up with apg_get_pattern / apg_get_example for full docs. Requires a pre-built index from npm run rag:index.
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": {
"query": "<query>"
},
"name": "apg_semantic_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of chunks to return | |
| query | Yes | Natural-language question or keywords | |
| maxCharsPerHit | No | Truncate each hit text to this many characters |