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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | hud.place |
| Commit rev | 3n3jbjdzdq6ju |
| Indexed |
Procedure
procedure · POSTInput
application/jsonafter
stringThe tile whose column it goes right of, as the page's focused one. One not on the canvas places nothing.
minLength: 12maxLength: 12
arguments
unknownThe tool's arguments, an object; at most 64 KiB as JSON.
A canvas's id: 12 hex digits, its space's key where it is kept in one.
minLength: 12maxLength: 12
from
stringThe tile it is opened from, which it is joined to. One not on the canvas places nothing.
minLength: 12maxLength: 12
stack
stringA tile whose column it is stacked into, at the end.
minLength: 12maxLength: 12
title
stringBy default, what it shows: a collection and its account, a feed's name.
maxLength: 2000maxGraphemes: 200
The read tool whose result it shows, by its MCP name.
maxLength: 64knownValues: describe_repo | describe_app | describe_collection | describe_method | list_records | get_record | query | open_app
width
stringIts column's width; by default from what it shows: half for documents and galleries, else third.
knownValues: third | half | two-thirds | full
Output
application/jsonexisting
booleanTrue 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.
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 matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
Stack a tile into a column.
-
Move a tile.
-
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.
-
A canvas and its tiles.
-
Retitle a tile, or have it draw another call in its place.