Add or change a location
save_locationAdds a location — a room, closet or shelf — to a property, or, with id, renames one or moves it inside another location of the same property (everything kept there moves with it).
Instructions
Adds a location — a room, closet or shelf — to a property, or, with id, renames one or moves it inside another location of the same property (everything kept there moves with it). To add: name, optionally parentId (inside another location) and children to make inside it in one go — "a garage with three shelves" is name "Garage", children ["Shelf 1", "Shelf 2", "Shelf 3"]; propertyId can be left out when there's only one property. Check list_locations first so you don't add one twice. A new property is save_property. Returns the location (and any children) with ids and paths.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The location to change, from list_locations; leave out to add a new one | |
| icon | No | An icon name for the app (optional) | |
| name | No | What the household calls it: "Garage", "Hall closet", "Top shelf" | |
| notes | No | Anything else worth keeping about it | |
| children | No | To add: names of locations to make inside it in one go, ["Shelf 1", "Shelf 2"] | |
| parentId | No | The location it's inside (a shelf in a closet), from list_locations; null: directly in the property | |
| propertyId | No | To add: the property, from list_locations; can be left out when there's only one |