Tool reference
Request ids Safe retries
Every tool that creates something takes a requestId. Send the same id to retry the same call, and Xale returns the first result instead of saving twice.
The rule
Make a new id for each new item: 8 to 100 letters, digits or - _ . :. Send the same id only to retry the same call. A readable id helps you: plan-2026-12-04-dentist.
{ "blockType": "quickblock", "title": "Dentist", "startAt": 1796378400000, "requestId": "plan-2026-12-04-dentist" }Xale remembers a requestId for 7 days, for this connection and this tool.
Which tools take one
The 19 create tools: xale_, xale_, xale_, xale_, xale_, xale_, xale_, xale_, xale_, xale_, xale_, xale_, xale_, xale_, xale_, xale_, xale_, xale_, xale_.
What comes back
| The text says | What it means | What to do |
|---|---|---|
A normal result with "alreadySaved": true beside notice | This id already saved this item. This is its first result. | Nothing to do: use the id in data (mapId for a Mindmap). Don't create it again. |
| “This call is still being made. Wait a few seconds, then send the same requestId again.” | The first call with this id is still running. | Wait, then send the same call with the same id. |
| “This requestId was already used for different content with xale_…. Use a new requestId for each new item.” | You reused an id for something else. | Make a new id. |
| “The outcome of the earlier call with this requestId is unknown. Check with a read tool before trying again; if it is not there, send it again with a new requestId. (Xale remembers a requestId for 7 days.)” | An earlier call with this id may have saved it. | Read first. Only if it isn't there, send it with a new id. |
| “Xale couldn't confirm that this finished (ref …). Check with a read tool before trying again, and use a new requestId if you do.” | This call may have saved it. | The same: read first, then a new id if needed. |
A refusal (a tool's own sentence, or invalid arguments) saved nothing and frees the id: fix the call and send it again with the same id.
A replayed result is shown only while everything it names can still be seen. If the item has since moved into a kept-away Area or to Trash, the replay answers “Nothing with that id is available in this Xale.”
A create with Tasks and Habits
Use one requestId for the parent and the children approved in that call. Resend the same arguments and ID when retrying that call. A replay returns the original parent and any taskIds and habitIds with alreadySaved: true. A changed child list is different content. If the outcome is uncertain, check with reads before sending a new ID.
Other ways to retry safely
xale_takes its ownbegin_ run beginKey(8 to 64 letters, digits,-or_): the same key gives the same run back.- Removals use a
removalIdfromxale_. It's confirmed once, within 30 minutes.prepare_ removal - Suggestions use a
proposalId.xale_keeps one record per suggestion, so accepting twice creates nothing more.accept_ proposal - Tools that change or tick things take no
requestId. Many are safe to repeat (ticking a done row, completing a done Habit), but read before you resend one whose outcome was uncertain.
- Checked against main
d2feeb6e