mimir_state_set
Set a key-value state entry with optional TTL for auto-expiration. Use for session state, temporary flags, or configuration values that expire after a set time.
Instructions
Set a key-value state entry with optional TTL for auto-expiration. Use this for session state, temporary flags, or configuration values that should expire after a set time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | State key — unique identifier for this state entry | |
| value_json | Yes | JSON value to store | |
| ttl_seconds | No | Time-to-live in seconds. Entry auto-expires and returns null after this duration. Omit for permanent state. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | State key set | |
| ttl_seconds | No | TTL that was set, if any | |
| expires_at_unix_ms | No | Expiration timestamp in unix milliseconds, if TTL was set |