~ 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
68 lines · 1.7 KB Raw History
{
	"lexicon": 1,
	"id": "place.hud.closeCanvas",
	"description": "Put a canvas away.",
	"defs": {
		"main": {
			"type": "procedure",
			"description": "Close a canvas's tab: it is put away, kept with its members and tiles. The last open tab is not closed. Closing the current one makes its neighbour current. 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.",
			"input": {
				"encoding": "application/json",
				"schema": {
					"type": "object",
					"required": [
						"canvas"
					],
					"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."
						}
					}
				}
			},
			"output": {
				"encoding": "application/json",
				"schema": {
					"type": "object",
					"required": [
						"open",
						"current"
					],
					"properties": {
						"open": {
							"type": "array",
							"items": {
								"type": "ref",
								"ref": "place.hud.defs#tab"
							},
							"description": "The canvases open as tabs, in their order."
						},
						"current": {
							"type": "string",
							"minLength": 12,
							"maxLength": 12,
							"description": "The canvas current now, one of open."
						}
					}
				}
			},
			"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": "It is the last open tab, or the input is not what the method takes."
				},
				{
					"name": "AuthRequired",
					"description": "No live web session or HUD access token: sign in."
				}
			]
		}
	}
}