{ "lexicon": 1, "id": "sh.weaver.graph.getTaggedResources", "defs": { "main": { "type": "query", "description": "Get notebooks and entries tagged with a specific tag.", "parameters": { "type": "params", "required": ["tag"], "properties": { "tag": { "type": "string", "minLength": 1, "maxLength": 128 }, "resourceType": { "type": "string", "knownValues": ["notebook", "entry", "all"], "default": "all" }, "includeAuthorTags": { "type": "boolean", "default": true, "description": "Include resources where author applied this tag." }, "includeCommunityTags": { "type": "boolean", "default": true, "description": "Include resources where community applied this tag." }, "sort": { "type": "string", "knownValues": ["recent", "popular"], "default": "recent" }, "limit": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 }, "cursor": { "type": "string" } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": ["resources"], "properties": { "tag": { "type": "ref", "ref": "sh.weaver.graph.defs#tagView" }, "resources": { "type": "array", "items": { "type": "union", "refs": [ "sh.weaver.notebook.defs#notebookView", "sh.weaver.notebook.defs#entryView" ] } }, "cursor": { "type": "string" } } } } } } }