update_master_record
Update a master record using its entity and record IDs. Edit label, value, sort order, parent, data, or color; requires user JWT with edit rights, and agent API keys are rejected.
Instructions
マスタレコードを更新。必須: entityId, recordId。任意: label, value, sortOrder, parentRecordId, data, color(#RRGGBB。null で消す)。エージェント API キーでは不可(401 — ユーザ JWT + 編集権限が必要)。identifier(slug / value)の変更は rename_master_record_slug → propose_change。並び替え・色の一括は apply_master_blueprint を使う。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | 追加 JSON。既知キー以外の拡張データ | |
| color | No | 任意の #RRGGBB。null で色を消す | |
| label | No | 表示ラベル(string または { ja, en } 等の locale map) | |
| value | No | 選択肢 value。select/radio snapshot に入れる文字列 | |
| entityId | Yes | マスタエンティティ UUID(list_master_entities の id) | |
| recordId | Yes | マスタレコード UUID(list_master_records / create_master_record の id) | |
| sortOrder | No | 並び順(小さいほど先) | |
| parentRecordId | No | 親レコード UUID。ルートは null。階層マスタのみ |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Primary resource UUID for the next tool call | |
| ok | No | ||
| name | No | ||
| slug | No | URL slug when the resource has one | |
| items | No | List rows; pass item.id to get_*/update_* | |
| status | No | Resource or revision status |