~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0
63 lines · 1.6 KB Raw History
{
	"lexicon": 1,
	"id": "place.hud.getCanvas",
	"description": "A canvas and its tiles.",
	"defs": {
		"main": {
			"type": "query",
			"description": "A canvas the person is in, or is invited to, with its tiles in strip order: each column's head, then the tiles stacked under it. A canvas holds 200 tiles at most, so they come whole. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin on a procedure) or a HUD access token as Bearer.",
			"parameters": {
				"type": "params",
				"properties": {
					"canvas": {
						"type": "string",
						"minLength": 12,
						"maxLength": 12,
						"description": "A canvas's id: 12 hex digits, its space's key where it is kept in one."
					}
				},
				"required": [
					"canvas"
				]
			},
			"output": {
				"encoding": "application/json",
				"schema": {
					"type": "object",
					"required": [
						"canvas",
						"tiles"
					],
					"properties": {
						"canvas": {
							"type": "ref",
							"ref": "place.hud.defs#canvasView"
						},
						"tiles": {
							"type": "array",
							"maxLength": 200,
							"items": {
								"type": "ref",
								"ref": "place.hud.defs#tileView"
							}
						}
					}
				}
			},
			"errors": [
				{
					"name": "NotFound",
					"description": "No canvas of this id that the person is in, or no tile of this id on it."
				},
				{
					"name": "InvalidRequest",
					"description": "The input is not what the method takes, or what it asks cannot be done."
				},
				{
					"name": "AuthRequired",
					"description": "No live web session or HUD access token: sign in."
				}
			]
		}
	}
}