~ 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
93 lines · 2.6 KB Raw History
{
	"lexicon": 1,
	"id": "place.hud.updateTile",
	"description": "Retitle a tile, or have it draw another call in its place.",
	"defs": {
		"main": {
			"type": "procedure",
			"description": "Change a tile's title, or its call (its tool and arguments, made canonical as addTile makes them), as a tab chosen in it: the same tile, in the same place, drawing the tab's call, every page told. A title made from the call follows the new one; one given stays. 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",
						"tile"
					],
					"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."
						},
						"tile": {
							"type": "string",
							"minLength": 12,
							"maxLength": 12,
							"description": "The tile."
						},
						"title": {
							"type": "string",
							"minLength": 1,
							"maxLength": 2000,
							"maxGraphemes": 200,
							"description": "Its new title."
						},
						"tool": {
							"type": "string",
							"maxLength": 64,
							"knownValues": [
								"describe_repo",
								"describe_app",
								"describe_collection",
								"describe_method",
								"list_records",
								"get_record",
								"query"
							],
							"description": "The read tool it draws now, by its MCP name; with arguments, its new call."
						},
						"arguments": {
							"type": "unknown",
							"description": "The tool's arguments, an object; at most 64 KiB as JSON. Given only with tool."
						}
					}
				}
			},
			"output": {
				"encoding": "application/json",
				"schema": {
					"type": "object",
					"required": [
						"tile"
					],
					"properties": {
						"tile": {
							"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": "Forbidden",
					"description": "The person's role does not allow it: a viewer changes no tile, and only the owner renames, deletes and shares."
				},
				{
					"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."
				}
			]
		}
	}
}