place.hud.addTile

Add a tile to a canvas, placed by the server, its arguments made canonical; or, with the same call there already, answer that tile: with stack, at the end of that tile's column; else with from, right after the run of columns from from's that hold only what was opened from it; else with after, right after that tile's column; else at the end. A canvas holds 200 tiles: the oldest goes past that. 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.

Repository @lexicons.hud.place did:plc:3tzbz4pml36u4mkresb6pdhv not from the namespace authority
Details · procedure
Kindprocedure
Authorityhud.place
Commit rev3n3jbjdzdq6ju
Indexed
cid bafyreidknataj27m5ttzusquz7ogmau5vvlpcxcxnyjhko5qqvxttk6ga4

Checks

Valid
  • unlimited-string defs.main.input.schema.properties.widthNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Add a tile to a canvas, placed by the server, its arguments made canonical; or, with the same call there already, answer that tile: with stack, at the end of that tile's column; else with from, right after the run of columns from from's that hold only what was opened from it; else with after, right after that tile's column; else at the end. A canvas holds 200 tiles: the oldest goes past that. 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.",
      "errors": [
        {
          "description": "No canvas of this id that the person is in, or no tile stack names.",
          "name": "NotFound"
        },
        {
          "description": "The person's role does not allow it: a viewer changes no tile, and only the owner renames, deletes and shares.",
          "name": "Forbidden"
        },
        {
          "description": "The input is not what the method takes, or what it asks cannot be done.",
          "name": "InvalidRequest"
        },
        {
          "description": "A limit was reached: 50 canvases an owner, 20 members a canvas, 3 tiles a column.",
          "name": "LimitReached"
        },
        {
          "description": "No live web session or HUD access token: sign in.",
          "name": "AuthRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "after": {
              "description": "The tile whose column it goes right of, as the page's focused one. One not on the canvas places nothing.",
              "maxLength": 12,
              "minLength": 12,
              "type": "string"
            },
            "arguments": {
              "description": "The tool's arguments, an object; at most 64 KiB as JSON.",
              "type": "unknown"
            },
            "canvas": {
              "description": "A canvas's id: 12 hex digits, its space's key where it is kept in one.",
              "maxLength": 12,
              "minLength": 12,
              "type": "string"
            },
            "from": {
              "description": "The tile it is opened from, which it is joined to. One not on the canvas places nothing.",
              "maxLength": 12,
              "minLength": 12,
              "type": "string"
            },
            "stack": {
              "description": "A tile whose column it is stacked into, at the end.",
              "maxLength": 12,
              "minLength": 12,
              "type": "string"
            },
            "title": {
              "description": "By default, what it shows: a collection and its account, a feed's name.",
              "maxGraphemes": 200,
              "maxLength": 2000,
              "type": "string"
            },
            "tool": {
              "description": "The read tool whose result it shows, by its MCP name.",
              "knownValues": [
                "describe_repo",
                "describe_app",
                "describe_collection",
                "describe_method",
                "list_records",
                "get_record",
                "query",
                "open_app"
              ],
              "maxLength": 64,
              "type": "string"
            },
            "width": {
              "description": "Its column's width; by default from what it shows: half for documents and galleries, else third.",
              "knownValues": [
                "third",
                "half",
                "two-thirds",
                "full"
              ],
              "type": "string"
            }
          },
          "required": [
            "canvas",
            "tool"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "existing": {
              "description": "True when the same call, made canonical (its keys sorted, its empty values dropped, the accounts it names by handle named by DID), was on the canvas already: tile is that one, and none was added.",
              "type": "boolean"
            },
            "tile": {
              "ref": "place.hud.defs#tileView",
              "type": "ref"
            }
          },
          "required": [
            "tile"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Add a tile to a canvas.",
  "id": "place.hud.addTile",
  "lexicon": 1
}