Memory Blocks

Update a memory block.

Updates the name, content, and/or system prompt amendment of a memory block.

put/memory_blocks/{memory_block_id}

Request

Path parameters

memory_block_idstring required

Id of the memory block.

Request body

namestring

New name for the memory block.

contentstring

Updated content of the memory block.

system_prompt_amendmentstring

Updated system prompt amendment.

injection_mode'system_prompt' | 'user_instruction' | 'agent_file' | 'agent_tool'

Where memory content is injected. 'system_prompt' adds it to the LLM system prompt; 'user_instruction' prepends it to the user message; 'agent_file' makes it only available as AGENTS.md in agent mode; 'agent_tool' exposes content lazily via the read_memory_block / update_memory_block tools (no pre-injection).

access_mode'read' | 'write' | 'read_write'

Controls whether the LLM/agent can read the memory, write to it, or both.

max_content_lengthinteger

Maximum number of characters allowed in memory content. Set to 0 for unlimited.

Response

Successful operation

Changes

No recorded changes to this operation across all 1 revision of this API.