# place.hud.updateTile

> 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.

- Kind: procedure
- 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.updateTile)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.updateTile/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.updateTile/analytics)

## Procedure (`place.hud.updateTile`)

Type: procedure · POST

### Input (application/json)

- `arguments` (unknown): The tool's arguments, an object; at most 64 KiB as JSON. Given only with tool.
- `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
- `tile` (string, required): The tile.
  - Constraints: minLength: 12, maxLength: 12
- `title` (string): Its new title.
  - Constraints: minLength: 1, maxLength: 2000, maxGraphemes: 200
- `tool` (string): The read tool it draws now, by its MCP name; with arguments, its new call.
  - Constraints: maxLength: 64, knownValues: describe_repo | describe_app | describe_collection | describe_method | list_records | get_record | query | open_app

### Output (application/json)

- `tile` (ref, required)
  - Reference: `place.hud.defs#tileView`

### Errors

- `NotFound`: No canvas of this id that the person is in, or no tile of this id on it.
- `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.
- `AuthRequired`: No live web session or HUD access token: sign in.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "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.",
      "errors": [
        {
          "description": "No canvas of this id that the person is in, or no tile of this id on it.",
          "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": "No live web session or HUD access token: sign in.",
          "name": "AuthRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "arguments": {
              "description": "The tool's arguments, an object; at most 64 KiB as JSON. Given only with tool.",
              "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"
            },
            "tile": {
              "description": "The tile.",
              "maxLength": 12,
              "minLength": 12,
              "type": "string"
            },
            "title": {
              "description": "Its new title.",
              "maxGraphemes": 200,
              "maxLength": 2000,
              "minLength": 1,
              "type": "string"
            },
            "tool": {
              "description": "The read tool it draws now, by its MCP name; with arguments, its new call.",
              "knownValues": [
                "describe_repo",
                "describe_app",
                "describe_collection",
                "describe_method",
                "list_records",
                "get_record",
                "query",
                "open_app"
              ],
              "maxLength": 64,
              "type": "string"
            }
          },
          "required": [
            "canvas",
            "tile"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "tile": {
              "ref": "place.hud.defs#tileView",
              "type": "ref"
            }
          },
          "required": [
            "tile"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Retitle a tile, or have it draw another call in its place.",
  "id": "place.hud.updateTile",
  "lexicon": 1
}
```
