memory_entity

Alpha, on the 3.6.x line. The API can still change within 3.x.

Manages the named entities of the workspace: the people, organizations, projects, concepts and places that facts are about.

Actions

actionNeedsWhat it does
createname, kindCreates an entity. This is the default action.
getidReturns one entity.
listLists entities. Filters: kind, q, limit.
updateidChanges name, kind, description, aliases or metadata.
linked_factsidLists the facts linked to the entity.
link_userid, userIdTies the entity to a platform account.
unlink_useridRemoves that tie.

To relate two entities, or a fact and an entity, use memory_relate.

Arguments

NameTypeRequiredDefaultNotes
actionstringnocreateOne of the seven actions above.
idstringper actionEntity id.
namestringper actionCanonical name. 1 to 200 characters.
kindstringper actionperson, organization, project, concept, place or other. Also a filter in list.
descriptionstringnoRole, context or other relevant detail.
aliasesstring[]noAlternative names.
qstringnoFor list: substring to search for.
limitintegernoFor list and linked_facts. 1 to 200.
metadataobjectnoFor create and update.
sensitivitystringnointernalFor create.
userIdstringper actionFor link_user. The user must be a member of the workspace.
idempotencyKeystringnoFor create. Prevents a duplicate entity on a retry.
targetWorkspaceIdstringnoFor create. UUID of another workspace where you have write access.

Linking another user, or re-linking an entity that is already linked to someone else, needs the memory:admin scope and an owner or admin role.

Example

{
  "name": "memory_entity",
  "arguments": {
    "action": "create",
    "name": "Larkspur Robotics",
    "kind": "organization",
    "description": "Builds warehouse robots. Ships firmware every two weeks.",
    "aliases": ["Larkspur"]
  }
}

Returns

create, get and update return the entity record as the server stores it. list and linked_facts return the matching entities or facts.

A project entity also gives scopeRef a canonical name: a memory stored with one of the project’s aliases as scopeRef is stored under the project’s name.