Memory Agent Ensure
memory_agent_ensureGet-or-create this org's ontology Agent + shared memory profile.
Harness agents slug to agent-<label>. Cloud agents slug to
agent-<cursor_agent_id>. Other agents read the profile with
memory_agent_get or memory_entity_view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Harness label (cursor, grok, dispatcher). Omit for the caller. | |
| agent | No | Override agent attribution label | |
| model | No | Cursor model id when known (composer-2.5, auto-smart, …) | |
| harness | No | Harness type that owns this agent (cursor, grok-bot, …) | |
| runtime | No | harness (MCP client) or cloud (Cursor cloud agent) | |
| spawned_by | No | Parent Agent slug or label (dispatcher that spawned this cloud agent) | |
| cursor_agent_id | No | Cursor cloud agent id (bc-…). Sets runtime=cloud when provided. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||