# place.hud.defs

> The shapes HUD's workspace methods share: canvases, their members and tiles, tabs, and the live events.

- Kind: defs
- Authority: hud.place
- Lexicon: 1
- Published by [lexicons.hud.place](https://lexicon.garden/identity/did:plc:3tzbz4pml36u4mkresb6pdhv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.defs/analytics)

## #actor (`place.hud.defs#actor`)

Type: object

A person, by DID and handle.

### Properties

- `did` (string · did, required)
- `handle` (string): Their handle, verified, where known.
  - Constraints: maxLength: 253

## #allowedApp (`place.hud.defs#allowedApp`)

Type: object

A frame app a person allows to save entries.

### Properties

- `app` (string · at-uri, required): Its place.hud.app record.

## #by (`place.hud.defs#by`)

Type: object

Who caused a change.

### Properties

- `did` (string · did, required): The person, or the person an agent acts for.
- `handle` (string): Their handle, where known.
  - Constraints: maxLength: 253
- `kind` (string): person: on a workspace page, or another client of these methods; agent: an MCP client of theirs, through HUD's canvas tools.
  - Constraints: knownValues: person | agent

## #canvasView (`place.hud.defs#canvasView`)

Type: object

A canvas, apart from its tiles.

### Properties

- `key` (string, required): The canvas's id: 12 hex digits, its space's key where it is kept in one.
  - Constraints: minLength: 12, maxLength: 12
- `link` (ref): Its link, while anyone with the link can view it.
  - Reference: `place.hud.defs#shareLink`
- `members` (array): Its owner and those it invited.
  - Constraints: maxLength: 20
  - `items` (ref)
    - Reference: `place.hud.defs#member`
- `owner` (string · did, required): The canvas's owner, its space's authority.
- `record` (unknown, required): The canvas's info, a place.hud.canvas record, as kept: its name, createdAt and updatedAt.
- `storage` (ref)
  - Reference: `place.hud.defs#storage`
- `tileCount` (integer): How many tiles it holds.
  - Constraints: minimum: 0
- `viewer` (ref)
  - Reference: `place.hud.defs#canvasViewerState`

## #canvasViewerState (`place.hud.defs#canvasViewerState`)

Type: object

The person asking, in a canvas.

### Properties

- `invitedBy` (string · did): Who invited the person, while the invitation waits: an invitation, not yet a canvas they are in.
- `role` (string): The person's role in it.
  - Constraints: knownValues: owner | editor | viewer

## #canvasesEvent (`place.hud.defs#canvasesEvent`)

Type: object

The person's workspace changed: a canvas made, renamed, shared, deleted, opened, closed or reordered, an invitation, where canvases are kept. Read getWorkspace again.

### Properties

- `by` (ref)
  - Reference: `place.hud.defs#by`
- `canvas` (string): The canvas that changed; none when it concerns all the person's, as where they are kept.
  - Constraints: minLength: 12, maxLength: 12

## #contrastProblem (`place.hud.defs#contrastProblem`)

Type: object

A text of a palette that reads at under 4.5:1 on a surface it is drawn on.

### Properties

- `on` (string, required): The palette's colour it is drawn on, by its field.
  - Constraints: maxLength: 32
- `ratio` (string, required): How it reads, as 3.21 for 3.21:1.
  - Constraints: maxLength: 8
- `text` (string, required): The palette's colour drawn as text, by its field.
  - Constraints: maxLength: 32

## #launcher (`place.hud.defs#launcher`)

Type: object

A query a bundled view offers a workspace's New tile: its app, the domain whose icon it shows, its title, and the query to call, its params made the person's.

### Properties

- `app` (string, required): The app's name, as an account's profile names the domain of its method (Bluesky for bsky.app).
  - Constraints: maxLength: 64
- `domain` (string, required): The domain of the app, from its method's NSID: its icon is /icon/<domain>.
  - Constraints: maxLength: 253
- `method` (string · nsid, required)
- `params` (unknown, required): The query's params, as an object.
- `service` (string, required): The service the query is called at, as did:…#fragment.
  - Constraints: maxLength: 2048
- `title` (string, required)
  - Constraints: maxLength: 120

## #member (`place.hud.defs#member`)

Type: object

A member of a canvas: its owner, or someone it invited.

### Properties

- `did` (string · did, required)
- `handle` (string): Their handle, verified when they were invited or signed in.
  - Constraints: maxLength: 253
- `invitedBy` (string · did): Who invited them; none for the owner.
- `pending` (boolean): True while their invitation waits: they are not in it yet.
- `role` (string)
  - Constraints: knownValues: owner | editor | viewer

## #palette (`place.hud.defs#palette`)

Type: object

A theme's colours, each named for what it colours rather than its hue, as a hex colour #rrggbb. Every text reads at 4.5:1 or better on what it is drawn on.

### Properties

- `accent` (string, required): What marks rather than acts: links, the tab one is on, the row a search picks.
  - Constraints: maxLength: 7
- `accentSoft` (string, required): Behind what the accent marks: the row a search picks.
  - Constraints: maxLength: 7
- `attention` (string, required): What waits or runs, and an agent's work.
  - Constraints: maxLength: 7
- `background` (string, required): A tile's body, and the page's chrome: what is drawn on the canvas.
  - Constraints: maxLength: 7
- `border` (string, required): Lines between parts, and a card's hairline.
  - Constraints: maxLength: 7
- `borderStrong` (string, required): A stronger edge, for a field or a column that has focus nearby.
  - Constraints: maxLength: 7
- `canvas` (string, required): The grey behind the tiles.
  - Constraints: maxLength: 7
- `danger` (string, required): What failed, is removed, or is dangerous.
  - Constraints: maxLength: 7
- `done` (string, required): What is done: a pull merged.
  - Constraints: maxLength: 7
- `neutral` (string, required): What closed or was skipped.
  - Constraints: maxLength: 7
- `notice` (string, required): A notice's surface: what a reader should know, and the toast that says what an agent did.
  - Constraints: maxLength: 7
- `onNotice` (string, required): A notice's text.
  - Constraints: maxLength: 7
- `onPrimary` (string, required): Text on the main buttons.
  - Constraints: maxLength: 7
- `onSolid` (string, required): Text on a state's pill, drawn in success, danger, done, attention or neutral.
  - Constraints: maxLength: 7
- `panel` (string, required): A surface a little apart from the background: a header.
  - Constraints: maxLength: 7
- `primary` (string, required): The main buttons, and the edge of what has focus.
  - Constraints: maxLength: 7
- `soft` (string, required): A surface further apart: a hovered row, a field.
  - Constraints: maxLength: 7
- `success` (string, required): What is open, passed, or added.
  - Constraints: maxLength: 7
- `text` (string, required): The body's text.
  - Constraints: maxLength: 7
- `textFaint` (string, required): Text said more quietly still: hints, placeholders.
  - Constraints: maxLength: 7
- `textMuted` (string, required): Text said quietly: times, counts.
  - Constraints: maxLength: 7

## #presenceEvent (`place.hud.defs#presenceEvent`)

Type: object

Who is on an open canvas: as a stream opens it, and as anyone comes or goes, by whom.

### Properties

- `by` (ref)
  - Reference: `place.hud.defs#by`
- `canvas` (string, required): A canvas's id: 12 hex digits, its space's key where it is kept in one.
  - Constraints: minLength: 12, maxLength: 12
- `present` (array, required): Who has it open now, each once.
  - `items` (ref)
    - Reference: `place.hud.defs#actor`

## #shareLink (`place.hud.defs#shareLink`)

Type: object

A link a person shared: anyone with it can view what it shares, a canvas as it is now, or a tile or a chat's answer as it was shared.

### Properties

- `canvas` (string): The canvas it shares, for kind canvas: told its sharer alone, never a link's holder.
  - Constraints: minLength: 12, maxLength: 12
- `createdAt` (string · datetime, required)
- `key` (string, required): The link's key: 128 random bits in base32, lowercase, unpadded; never derived from what it shares. Its pages are /c/<key>, /t/<key> and /chat/<key>.
  - Constraints: minLength: 26, maxLength: 26
- `kind` (string, required): What it shares: canvas, a canvas, live; tile, one tile's call; chat, one answer of a chat.
  - Constraints: knownValues: canvas | tile | chat
- `title` (string, required): What it is called: the canvas's name, the tile's title, or the question the answer is to.
  - Constraints: maxLength: 200
- `url` (string · uri, required): Its page on this server: /c/<id>, /t/<id> or /chat/<id>.

## #sharedCall (`place.hud.defs#sharedCall`)

Type: object

A tile on a shared page: one of HUD's read tools and its arguments, an inline view among them where it has one, never its result. The page calls it as whoever opens it.

### Properties

- `arguments` (unknown, required): Its arguments, an object of at most 64 KiB as JSON.
- `title` (string, required)
  - Constraints: maxLength: 200
- `tool` (string, required): The read tool, by its MCP name.
  - Constraints: maxLength: 64

## #sharedTile (`place.hud.defs#sharedTile`)

Type: object

A tile of a canvas shared by link, as its link's holders see it: its call and its place, never who added it.

### Properties

- `arguments` (unknown, required): Its arguments, an object of at most 64 KiB as JSON.
- `icon` (string · uri): The icon of the app whose data it shows, as a tileView's.
- `key` (string, required): The tile's id: 12 hex digits, what callSharedTool names it by.
  - Constraints: minLength: 12, maxLength: 12
- `stack` (string): The column-head tile it is stacked under; none for a head.
  - Constraints: minLength: 12, maxLength: 12
- `title` (string, required)
  - Constraints: maxLength: 200
- `tool` (string, required): The read tool, by its MCP name.
  - Constraints: maxLength: 64
- `width` (string, required): Its column's width, a share of the strip's visible width; a stacked tile's column is its head's.
  - Constraints: knownValues: third | half | two-thirds | full

## #storage (`place.hud.defs#storage`)

Type: object

Where a canvas is kept.

### Properties

- `kind` (string, required): space: a personal space on the owner's PDS; file: the HUD server's own files.
  - Constraints: knownValues: file | space
- `reason` (string): Why it is not in a space, where spaces are on.
  - Constraints: maxLength: 1000
- `uri` (string · at-uri): The canvas's space, for kind space.

## #tab (`place.hud.defs#tab`)

Type: object

A canvas open as a tab.

### Properties

- `canvas` (ref, required)
  - Reference: `place.hud.defs#canvasView`

## #tabRef (`place.hud.defs#tabRef`)

Type: object

A tab, by its canvas.

### Properties

- `canvas` (string, required): A canvas's id: 12 hex digits, its space's key where it is kept in one.
  - Constraints: minLength: 12, maxLength: 12

## #theme (`place.hud.defs#theme`)

Type: object

A theme the workspace is drawn in: one of HUD's, by key, or a person's place.hud.theme record, by uri; never both. Light and dark are HUD's own look in that scheme, as each platform draws it, so they have no palette; every other theme is a palette, drawn over its scheme's look.

### Properties

- `colorScheme` (string, required): Whether it is light or dark: what its palette falls back on, and how a platform draws what the theme does not colour, as scrollbars and system controls.
  - Constraints: maxLength: 16, knownValues: light | dark
- `creator` (ref): Who made a person's theme.
  - Reference: `#actor`
- `key` (string): One of HUD's themes, as setTheme names it.
  - Constraints: maxLength: 64, knownValues: light | dark | amber | blueprint | dusk | frost | paper | phosphor
- `name` (string, required): What it is called, as the workspace lists it.
  - Constraints: maxLength: 640, maxGraphemes: 64
- `palette` (ref): Its colours; none for light and dark, HUD's own look.
  - Reference: `#palette`
- `uri` (string · at-uri): A person's theme: its place.hud.theme record, as setTheme names it.

## #tileEvent (`place.hud.defs#tileEvent`)

Type: object

A tile of an open canvas changed. One change may move others, each its own event: a column's head taken off, the next in its stack heads it.

### Properties

- `by` (ref)
  - Reference: `place.hud.defs#by`
- `canvas` (string, required): A canvas's id: 12 hex digits, its space's key where it is kept in one.
  - Constraints: minLength: 12, maxLength: 12
- `key` (string, required): The tile's id.
  - Constraints: minLength: 12, maxLength: 12
- `op` (string, required): add: a tile added; update: its place, width, stack or title changed; remove: taken off.
  - Constraints: knownValues: add | update | remove
- `tile` (ref): The tile as it now is; none once removed.
  - Reference: `place.hud.defs#tileView`

## #tileView (`place.hud.defs#tileView`)

Type: object

A tile: one of HUD's read tools and its arguments, never its result, as a column of the strip, or stacked in one.

### Properties

- `author` (string · did, required): The member who added it, in whose repo its record is.
- `icon` (string · uri): The icon of the app whose data it shows: its favicon, from this server's /icon/<domain>, the domain the NSID's first two segments reversed (app.bsky → bsky.app), of the collection a record tile shows or the method a query tile calls. None where it names no NSID; it answers 404 where the app has no icon.
- `key` (string, required): The tile's id: 12 hex digits, its record's key.
  - Constraints: minLength: 12, maxLength: 12
- `record` (unknown, required): The tile, a place.hud.tile record, as kept: its tool and arguments (or argumentsJson), title, order, width, stack, by, createdAt and from.
- `uri` (string · at-uri): The tile's record, in its canvas's space, where the canvas is kept in one; none for one kept on the HUD server.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "actor": {
      "description": "A person, by DID and handle.",
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "handle": {
          "description": "Their handle, verified, where known.",
          "maxLength": 253,
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "allowedApp": {
      "description": "A frame app a person allows to save entries.",
      "properties": {
        "app": {
          "description": "Its place.hud.app record.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "app"
      ],
      "type": "object"
    },
    "by": {
      "description": "Who caused a change.",
      "properties": {
        "did": {
          "description": "The person, or the person an agent acts for.",
          "format": "did",
          "type": "string"
        },
        "handle": {
          "description": "Their handle, where known.",
          "maxLength": 253,
          "type": "string"
        },
        "kind": {
          "description": "person: on a workspace page, or another client of these methods; agent: an MCP client of theirs, through HUD's canvas tools.",
          "knownValues": [
            "person",
            "agent"
          ],
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "canvasView": {
      "description": "A canvas, apart from its tiles.",
      "properties": {
        "key": {
          "description": "The canvas's id: 12 hex digits, its space's key where it is kept in one.",
          "maxLength": 12,
          "minLength": 12,
          "type": "string"
        },
        "link": {
          "description": "Its link, while anyone with the link can view it.",
          "ref": "place.hud.defs#shareLink",
          "type": "ref"
        },
        "members": {
          "description": "Its owner and those it invited.",
          "items": {
            "ref": "place.hud.defs#member",
            "type": "ref"
          },
          "maxLength": 20,
          "type": "array"
        },
        "owner": {
          "description": "The canvas's owner, its space's authority.",
          "format": "did",
          "type": "string"
        },
        "record": {
          "description": "The canvas's info, a place.hud.canvas record, as kept: its name, createdAt and updatedAt.",
          "type": "unknown"
        },
        "storage": {
          "ref": "place.hud.defs#storage",
          "type": "ref"
        },
        "tileCount": {
          "description": "How many tiles it holds.",
          "minimum": 0,
          "type": "integer"
        },
        "viewer": {
          "ref": "place.hud.defs#canvasViewerState",
          "type": "ref"
        }
      },
      "required": [
        "key",
        "owner",
        "record"
      ],
      "type": "object"
    },
    "canvasViewerState": {
      "description": "The person asking, in a canvas.",
      "properties": {
        "invitedBy": {
          "description": "Who invited the person, while the invitation waits: an invitation, not yet a canvas they are in.",
          "format": "did",
          "type": "string"
        },
        "role": {
          "description": "The person's role in it.",
          "knownValues": [
            "owner",
            "editor",
            "viewer"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "canvasesEvent": {
      "description": "The person's workspace changed: a canvas made, renamed, shared, deleted, opened, closed or reordered, an invitation, where canvases are kept. Read getWorkspace again.",
      "properties": {
        "by": {
          "ref": "place.hud.defs#by",
          "type": "ref"
        },
        "canvas": {
          "description": "The canvas that changed; none when it concerns all the person's, as where they are kept.",
          "maxLength": 12,
          "minLength": 12,
          "type": "string"
        }
      },
      "type": "object"
    },
    "contrastProblem": {
      "description": "A text of a palette that reads at under 4.5:1 on a surface it is drawn on.",
      "properties": {
        "on": {
          "description": "The palette's colour it is drawn on, by its field.",
          "maxLength": 32,
          "type": "string"
        },
        "ratio": {
          "description": "How it reads, as 3.21 for 3.21:1.",
          "maxLength": 8,
          "type": "string"
        },
        "text": {
          "description": "The palette's colour drawn as text, by its field.",
          "maxLength": 32,
          "type": "string"
        }
      },
      "required": [
        "text",
        "on",
        "ratio"
      ],
      "type": "object"
    },
    "launcher": {
      "description": "A query a bundled view offers a workspace's New tile: its app, the domain whose icon it shows, its title, and the query to call, its params made the person's.",
      "properties": {
        "app": {
          "description": "The app's name, as an account's profile names the domain of its method (Bluesky for bsky.app).",
          "maxLength": 64,
          "type": "string"
        },
        "domain": {
          "description": "The domain of the app, from its method's NSID: its icon is /icon/<domain>.",
          "maxLength": 253,
          "type": "string"
        },
        "method": {
          "format": "nsid",
          "type": "string"
        },
        "params": {
          "description": "The query's params, as an object.",
          "type": "unknown"
        },
        "service": {
          "description": "The service the query is called at, as did:…#fragment.",
          "maxLength": 2048,
          "type": "string"
        },
        "title": {
          "maxLength": 120,
          "type": "string"
        }
      },
      "required": [
        "app",
        "domain",
        "title",
        "method",
        "service",
        "params"
      ],
      "type": "object"
    },
    "member": {
      "description": "A member of a canvas: its owner, or someone it invited.",
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "handle": {
          "description": "Their handle, verified when they were invited or signed in.",
          "maxLength": 253,
          "type": "string"
        },
        "invitedBy": {
          "description": "Who invited them; none for the owner.",
          "format": "did",
          "type": "string"
        },
        "pending": {
          "description": "True while their invitation waits: they are not in it yet.",
          "type": "boolean"
        },
        "role": {
          "knownValues": [
            "owner",
            "editor",
            "viewer"
          ],
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "palette": {
      "description": "A theme's colours, each named for what it colours rather than its hue, as a hex colour #rrggbb. Every text reads at 4.5:1 or better on what it is drawn on.",
      "properties": {
        "accent": {
          "description": "What marks rather than acts: links, the tab one is on, the row a search picks.",
          "maxLength": 7,
          "type": "string"
        },
        "accentSoft": {
          "description": "Behind what the accent marks: the row a search picks.",
          "maxLength": 7,
          "type": "string"
        },
        "attention": {
          "description": "What waits or runs, and an agent's work.",
          "maxLength": 7,
          "type": "string"
        },
        "background": {
          "description": "A tile's body, and the page's chrome: what is drawn on the canvas.",
          "maxLength": 7,
          "type": "string"
        },
        "border": {
          "description": "Lines between parts, and a card's hairline.",
          "maxLength": 7,
          "type": "string"
        },
        "borderStrong": {
          "description": "A stronger edge, for a field or a column that has focus nearby.",
          "maxLength": 7,
          "type": "string"
        },
        "canvas": {
          "description": "The grey behind the tiles.",
          "maxLength": 7,
          "type": "string"
        },
        "danger": {
          "description": "What failed, is removed, or is dangerous.",
          "maxLength": 7,
          "type": "string"
        },
        "done": {
          "description": "What is done: a pull merged.",
          "maxLength": 7,
          "type": "string"
        },
        "neutral": {
          "description": "What closed or was skipped.",
          "maxLength": 7,
          "type": "string"
        },
        "notice": {
          "description": "A notice's surface: what a reader should know, and the toast that says what an agent did.",
          "maxLength": 7,
          "type": "string"
        },
        "onNotice": {
          "description": "A notice's text.",
          "maxLength": 7,
          "type": "string"
        },
        "onPrimary": {
          "description": "Text on the main buttons.",
          "maxLength": 7,
          "type": "string"
        },
        "onSolid": {
          "description": "Text on a state's pill, drawn in success, danger, done, attention or neutral.",
          "maxLength": 7,
          "type": "string"
        },
        "panel": {
          "description": "A surface a little apart from the background: a header.",
          "maxLength": 7,
          "type": "string"
        },
        "primary": {
          "description": "The main buttons, and the edge of what has focus.",
          "maxLength": 7,
          "type": "string"
        },
        "soft": {
          "description": "A surface further apart: a hovered row, a field.",
          "maxLength": 7,
          "type": "string"
        },
        "success": {
          "description": "What is open, passed, or added.",
          "maxLength": 7,
          "type": "string"
        },
        "text": {
          "description": "The body's text.",
          "maxLength": 7,
          "type": "string"
        },
        "textFaint": {
          "description": "Text said more quietly still: hints, placeholders.",
          "maxLength": 7,
          "type": "string"
        },
        "textMuted": {
          "description": "Text said quietly: times, counts.",
          "maxLength": 7,
          "type": "string"
        }
      },
      "required": [
        "canvas",
        "background",
        "panel",
        "soft",
        "border",
        "borderStrong",
        "text",
        "textMuted",
        "textFaint",
        "primary",
        "onPrimary",
        "accent",
        "accentSoft",
        "success",
        "danger",
        "done",
        "attention",
        "neutral",
        "onSolid",
        "notice",
        "onNotice"
      ],
      "type": "object"
    },
    "presenceEvent": {
      "description": "Who is on an open canvas: as a stream opens it, and as anyone comes or goes, by whom.",
      "properties": {
        "by": {
          "ref": "place.hud.defs#by",
          "type": "ref"
        },
        "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"
        },
        "present": {
          "description": "Who has it open now, each once.",
          "items": {
            "ref": "place.hud.defs#actor",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "canvas",
        "present"
      ],
      "type": "object"
    },
    "shareLink": {
      "description": "A link a person shared: anyone with it can view what it shares, a canvas as it is now, or a tile or a chat's answer as it was shared.",
      "properties": {
        "canvas": {
          "description": "The canvas it shares, for kind canvas: told its sharer alone, never a link's holder.",
          "maxLength": 12,
          "minLength": 12,
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "key": {
          "description": "The link's key: 128 random bits in base32, lowercase, unpadded; never derived from what it shares. Its pages are /c/<key>, /t/<key> and /chat/<key>.",
          "maxLength": 26,
          "minLength": 26,
          "type": "string"
        },
        "kind": {
          "description": "What it shares: canvas, a canvas, live; tile, one tile's call; chat, one answer of a chat.",
          "knownValues": [
            "canvas",
            "tile",
            "chat"
          ],
          "type": "string"
        },
        "title": {
          "description": "What it is called: the canvas's name, the tile's title, or the question the answer is to.",
          "maxLength": 200,
          "type": "string"
        },
        "url": {
          "description": "Its page on this server: /c/<id>, /t/<id> or /chat/<id>.",
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "key",
        "kind",
        "url",
        "title",
        "createdAt"
      ],
      "type": "object"
    },
    "sharedCall": {
      "description": "A tile on a shared page: one of HUD's read tools and its arguments, an inline view among them where it has one, never its result. The page calls it as whoever opens it.",
      "properties": {
        "arguments": {
          "description": "Its arguments, an object of at most 64 KiB as JSON.",
          "type": "unknown"
        },
        "title": {
          "maxLength": 200,
          "type": "string"
        },
        "tool": {
          "description": "The read tool, by its MCP name.",
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "tool",
        "arguments",
        "title"
      ],
      "type": "object"
    },
    "sharedTile": {
      "description": "A tile of a canvas shared by link, as its link's holders see it: its call and its place, never who added it.",
      "properties": {
        "arguments": {
          "description": "Its arguments, an object of at most 64 KiB as JSON.",
          "type": "unknown"
        },
        "icon": {
          "description": "The icon of the app whose data it shows, as a tileView's.",
          "format": "uri",
          "type": "string"
        },
        "key": {
          "description": "The tile's id: 12 hex digits, what callSharedTool names it by.",
          "maxLength": 12,
          "minLength": 12,
          "type": "string"
        },
        "stack": {
          "description": "The column-head tile it is stacked under; none for a head.",
          "maxLength": 12,
          "minLength": 12,
          "type": "string"
        },
        "title": {
          "maxLength": 200,
          "type": "string"
        },
        "tool": {
          "description": "The read tool, by its MCP name.",
          "maxLength": 64,
          "type": "string"
        },
        "width": {
          "description": "Its column's width, a share of the strip's visible width; a stacked tile's column is its head's.",
          "knownValues": [
            "third",
            "half",
            "two-thirds",
            "full"
          ],
          "type": "string"
        }
      },
      "required": [
        "key",
        "tool",
        "arguments",
        "title",
        "width"
      ],
      "type": "object"
    },
    "storage": {
      "description": "Where a canvas is kept.",
      "properties": {
        "kind": {
          "description": "space: a personal space on the owner's PDS; file: the HUD server's own files.",
          "knownValues": [
            "file",
            "space"
          ],
          "type": "string"
        },
        "reason": {
          "description": "Why it is not in a space, where spaces are on.",
          "maxLength": 1000,
          "type": "string"
        },
        "uri": {
          "description": "The canvas's space, for kind space.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "tab": {
      "description": "A canvas open as a tab.",
      "properties": {
        "canvas": {
          "ref": "place.hud.defs#canvasView",
          "type": "ref"
        }
      },
      "required": [
        "canvas"
      ],
      "type": "object"
    },
    "tabRef": {
      "description": "A tab, by its canvas.",
      "properties": {
        "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"
        }
      },
      "required": [
        "canvas"
      ],
      "type": "object"
    },
    "theme": {
      "description": "A theme the workspace is drawn in: one of HUD's, by key, or a person's place.hud.theme record, by uri; never both. Light and dark are HUD's own look in that scheme, as each platform draws it, so they have no palette; every other theme is a palette, drawn over its scheme's look.",
      "properties": {
        "colorScheme": {
          "description": "Whether it is light or dark: what its palette falls back on, and how a platform draws what the theme does not colour, as scrollbars and system controls.",
          "knownValues": [
            "light",
            "dark"
          ],
          "maxLength": 16,
          "type": "string"
        },
        "creator": {
          "description": "Who made a person's theme.",
          "ref": "#actor",
          "type": "ref"
        },
        "key": {
          "description": "One of HUD's themes, as setTheme names it.",
          "knownValues": [
            "light",
            "dark",
            "amber",
            "blueprint",
            "dusk",
            "frost",
            "paper",
            "phosphor"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "name": {
          "description": "What it is called, as the workspace lists it.",
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "palette": {
          "description": "Its colours; none for light and dark, HUD's own look.",
          "ref": "#palette",
          "type": "ref"
        },
        "uri": {
          "description": "A person's theme: its place.hud.theme record, as setTheme names it.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "name",
        "colorScheme"
      ],
      "type": "object"
    },
    "tileEvent": {
      "description": "A tile of an open canvas changed. One change may move others, each its own event: a column's head taken off, the next in its stack heads it.",
      "properties": {
        "by": {
          "ref": "place.hud.defs#by",
          "type": "ref"
        },
        "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"
        },
        "key": {
          "description": "The tile's id.",
          "maxLength": 12,
          "minLength": 12,
          "type": "string"
        },
        "op": {
          "description": "add: a tile added; update: its place, width, stack or title changed; remove: taken off.",
          "knownValues": [
            "add",
            "update",
            "remove"
          ],
          "type": "string"
        },
        "tile": {
          "description": "The tile as it now is; none once removed.",
          "ref": "place.hud.defs#tileView",
          "type": "ref"
        }
      },
      "required": [
        "canvas",
        "op",
        "key"
      ],
      "type": "object"
    },
    "tileView": {
      "description": "A tile: one of HUD's read tools and its arguments, never its result, as a column of the strip, or stacked in one.",
      "properties": {
        "author": {
          "description": "The member who added it, in whose repo its record is.",
          "format": "did",
          "type": "string"
        },
        "icon": {
          "description": "The icon of the app whose data it shows: its favicon, from this server's /icon/<domain>, the domain the NSID's first two segments reversed (app.bsky → bsky.app), of the collection a record tile shows or the method a query tile calls. None where it names no NSID; it answers 404 where the app has no icon.",
          "format": "uri",
          "type": "string"
        },
        "key": {
          "description": "The tile's id: 12 hex digits, its record's key.",
          "maxLength": 12,
          "minLength": 12,
          "type": "string"
        },
        "record": {
          "description": "The tile, a place.hud.tile record, as kept: its tool and arguments (or argumentsJson), title, order, width, stack, by, createdAt and from.",
          "type": "unknown"
        },
        "uri": {
          "description": "The tile's record, in its canvas's space, where the canvas is kept in one; none for one kept on the HUD server.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "key",
        "author",
        "record"
      ],
      "type": "object"
    }
  },
  "description": "The shapes HUD's workspace methods share: canvases, their members and tiles, tabs, and the live events.",
  "id": "place.hud.defs",
  "lexicon": 1
}
```
