Change a list
edit_listChanges a list that already exists, all of it in one call. list sets the list's own title, display unit, trip dates, and trail (only the fields given; an empty string clears a date or the trail). folders renames, reorders, reclassifies, or removes folders, named by id or current name; removing one removes its rows. add puts new rows on, into a folder by name (made when missing) or under a group by the parent row's id. update changes rows by the ids get_list gives: any field, null clearing one that can be cleared; a new folder, place, or group; a catalog_id to link or relink the row where it sits, null to unlink. remove takes rows off by id, a group's nested rows with it. The parts apply in that order as one change, and nothing is applied unless every part is valid: a row or folder named that isn't there fails the whole call. A name or weight changed on a catalog-linked row is kept as the owner's own. Takes the list's edit link, or its share code under a signed-in account that has filed it.
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": "edit_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | New rows. Each may name its folder, or the group to join. | |
| list | No | The list's own fields. Only the fields given change. | |
| again | No | True to make the same change twice on purpose; otherwise an identical call adding rows within ten minutes is a retry (repeated). | |
| remove | No | Ids of rows to take off, from get_list. | |
| update | No | Changes to rows that exist, each by id. | |
| folders | No | Changes to folders that exist. | |
| edit_link | No | The list's edit link, whole (mahonia.app/e/CODE#token). The part after # is the write capability. Leave it out to name a list filed under the signed-in account by share_code instead. | |
| share_code | No | Instead of the edit link: the share code or share link of a list filed under the connector's account, as get_list with no share_code gives it. Takes a sign-in with read-and-change access, and reaches only the lists that account has filed. |