{ "lexicon": 1, "id": "sh.weaver.notebook.searchNotebooks", "defs": { "main": { "type": "query", "description": "Full-text search for notebooks.", "parameters": { "type": "params", "required": [ "q" ], "properties": { "author": { "type": "string", "description": "Filter by author.", "format": "at-identifier" }, "cursor": { "type": "string" }, "limit": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100 }, "q": { "type": "string", "minLength": 1, "maxLength": 500 }, "rating": { "type": "array", "description": "Filter by content rating (any of these).", "items": { "type": "string", "knownValues": [ "general", "teen", "mature", "explicit" ] } }, "sort": { "type": "string", "default": "relevance", "knownValues": [ "relevance", "recent", "popular" ] }, "tags": { "type": "array", "description": "Filter by tags (all must match).", "items": { "type": "string" }, "maxLength": 10 } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": [ "notebooks" ], "properties": { "cursor": { "type": "string" }, "notebooks": { "type": "array", "items": { "type": "ref", "ref": "sh.weaver.notebook.defs#notebookView" } } } } } } } }