memstate_set
Store simple configuration values, status flags, or version numbers at specific hierarchical keypaths for AI agent memory management.
Instructions
Set one keypath to a short value. Only for simple key=value facts like config, status, or version numbers.
USE THIS WHEN: You need to store ONE specific value at a known keypath (e.g. a port number, a status flag, a version string). NOT FOR: Task summaries, markdown, or text with multiple facts — use memstate_remember instead.
memstate_set(project_id="myapp", keypath="config.database.port", value="5432") memstate_set(project_id="myapp", keypath="status.deployment", value="production") memstate_set(project_id="myapp", keypath="version.current", value="2.1.0")
Value limit: 2,000 chars. If longer, use memstate_remember instead. Keypath is auto-prefixed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Required. Project to store in (e.g. 'myapp'). Auto-creates if new. | |
| keypath | Yes | Required. Hierarchical path like 'config.port' or 'status'. Auto-prefixed with 'project.{project_id}.' | |
| value | Yes | The value to store (max 2,000 chars). Short, simple values only — not markdown. | |
| category | No | Category: decision, preference, fact, task, context, requirement, note, code, learning | |
| topics | No | Optional additional topics/tags |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |