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

Procedure

procedure · POST

Input

application/json

after

string

The tile whose column it goes right of, as the page's focused one. One not on the canvas places nothing.

  • minLength: 12
  • maxLength: 12

arguments

unknown

The tool's arguments, an object; at most 64 KiB as JSON.

canvas

requiredstring

A canvas's id: 12 hex digits, its space's key where it is kept in one.

  • minLength: 12
  • maxLength: 12

from

string

The tile it is opened from, which it is joined to. One not on the canvas places nothing.

  • minLength: 12
  • maxLength: 12

stack

string

A tile whose column it is stacked into, at the end.

  • minLength: 12
  • maxLength: 12

title

string

By default, what it shows: a collection and its account, a feed's name.

  • maxLength: 2000
  • maxGraphemes: 200

tool

requiredstring

The read tool whose result it shows, by its MCP name.

  • maxLength: 64
  • knownValues: describe_repo | describe_app | describe_collection | describe_method | list_records | get_record | query | open_app

width

string

Its column's width; by default from what it shows: half for documents and galleries, else third.

  • knownValues: third | half | two-thirds | full

Output

application/json

existing

boolean

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.

tile

requiredref

Errors

NotFound

No canvas of this id that the person is in, or no tile stack names.

Forbidden

The person's role does not allow it: a viewer changes no tile, and only the owner renames, deletes and shares.

InvalidRequest

The input is not what the method takes, or what it asks cannot be done.

LimitReached

A limit was reached: 50 canvases an owner, 20 members a canvas, 3 tiles a column.

AuthRequired

No live web session or HUD access token: sign in.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • place.hud.stackTile

    procedure not from the namespace authority

    Stack a tile into a column.

  • place.hud.placeTile

    procedure not from the namespace authority

    Move a tile.

  • place.hud.tile

    record not from the namespace authority

    A tile of a HUD canvas, in the repo of the member who added it in the canvas's space (place.hud.workspace), keyed by the tile's id (12 hex digits): one of HUD's read tools and its arguments, never its result, as a column of the canvas's strip of columns, or in a column's stack.

  • place.hud.getCanvas

    query not from the namespace authority

    A canvas and its tiles.

  • place.hud.updateTile

    procedure not from the namespace authority

    Retitle a tile, or have it draw another call in its place.