# set_beds

Set the complete bed configuration for a unit or unit type. Computes a diff against current beds: creates new beds
(no id),
updates changed beds (by id), and deletes beds not in the list. Pass an empty array to remove all beds. Use
list_bed_types to discover valid bed type IDs.

<!-- INPUT_BLOCK_START -->

## Input

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `entityType` | `EntityType` | Yes | The type of entity to manage beds for (UNIT or UNIT_TYPE — beds do not apply to buildings) - [EntityType](#entitytype) |
| `entityId` | `string` | Yes | The ID of the unit or unit type |
| `beds` | `SetBedInput[]` | Yes | The desired final list of beds. Existing beds not included are deleted. Pass an empty array to remove all beds. - [SetBedInput](#setbedinput) |

### SetBedInput

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | No | The existing bed ID. Provide to keep/update an existing bed; omit to create a new bed. |
| `roomId` | `string` | Yes | The ID of the room the bed belongs to |
| `bedTypeId` | `string` | Yes | The ID of the bed type (e.g. king, queen, single, double, bunkBed, sofaBed, etc.) |

### EntityType

| Value | Description |
| --- | --- |
| `UNIT` | A single accommodation unit |
| `UNIT_TYPE` | A unit type grouping multiple units |

<!-- INPUT_BLOCK_END -->

<!-- OUTPUT_BLOCK_START -->

## Output

| Field | Type | Description |
| --- | --- | --- |
| `content` | `ContentItem[]` | Array of content items returned by the tool - [ContentItem](#contentitem) |
| `isError` | `boolean` | Whether the tool execution resulted in an error |

### ContentItem

| Field | Type | Description |
| --- | --- | --- |
| `type` | `'text'` | Content type (currently only 'text' is supported) |
| `text` | `string` | The text content to display |

<!-- OUTPUT_BLOCK_END -->
