search_docs ( query , limit )
Full-text search over Cuitty's published documentation. Returns matching doc slugs with short excerpts so the agent can decide which page to fetch in full.
{
"type": "object",
"additionalProperties": false,
"properties": {
"query": {
"type": "string",
"description": "Free-form natural-language query. Phrases work; exact match not required."
},
"limit": {
"type": "integer",
"description": "Maximum number of hits to return.",
"minimum": 1,
"maximum": 50,
"default": 10
}
},
"required": [
"query"
]
}{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "search_docs",
"arguments": {
"query": "rotate a secret",
"limit": 3
}
}
}{
"hits": [
{
"slug": "modules/secrets",
"title": "Secrets",
"section": "Modules",
"excerpt": "...rotation runs as a signed event into /api/ingest...",
"score": 0.91
}
]
}
Shape: { hits: Array<{ slug: string; title: string; section: string; excerpt: string; score: number }> }