How to give an agent a scratchpad that survives its run

Store notes under a state key. It persists independent of the process that wrote it.

Run it

curl -s -X POST https://api.model.tools/api/v1/state/scratch -H 'Content-Type: application/json' -d '{"note":"next step is X"}'

Response

{"ok":true,"id":"scratch"}