search_lexicons
Browse or search the registry of published AT Protocol lexicon schemas. The response's total field is the exact registry size and matched is the exact match count. Substring matches the NSID or description (query 'profile' → anything containing 'profile'); prefix the query with a DOT for a suffix match (query '.profile' → only NSIDs ENDING in .profile, i.e. profile record types). Filter by schema kind with type — 'give me every space lexicon' is type='space' with NO query, since an NSID does not imply its type (space.saebyeok.permissionSet is a permission set; app.kimbia.circle is a space). Types: the spec's primary types are record, query, procedure, subscription, and permission-set; a main def may also be a non-primary type (object, token, string); space comes from proposal 0016 (permissioned data), which is not in the ratified spec; defs-only marks a schema file with no main definition. Every response carries a typeCounts breakdown of the returned matches (it sums to matched), so one call with no arguments shows which kinds exist and how many; when you filter by type, otherTypes reports what the filter excluded, so a too-narrow or misspelled type still shows you the real options. Without a query or type, returns the total plus a sample. Results are paginated by limit; to see matches beyond the first page, call again with the offset printed at the end of the list. Use resolve_lexicon for a specific schema's full definition.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Keep only these schema kinds, e.g. "space" for permissioned space declarations, or ["record","procedure"]. Case-insensitive. Combine with query to search within a kind. | |
| limit | No | Page size (1-100, default 50). A cursor in the response means more pages exist. | |
| query | No | Optional substring to filter by, e.g. "profile" or "app.bsky". | |
| offset | No | Skip this many matches (pagination). Use the offset value printed after a truncated list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||