ToolDependency::contextExists('workspace_id','Workspace context required to store memories'),
];
}
publicfunctionname():string
{
return'brain_remember';
}
publicfunctiondescription():string
{
return'Store a memory in the shared OpenBrain knowledge store. Use this to persist decisions, observations, conventions, research, plans, bugs, or architecture knowledge for other agents.';
}
publicfunctioninputSchema():array
{
return[
'type'=>'object',
'properties'=>[
'content'=>[
'type'=>'string',
'description'=>'The knowledge to remember (max 50,000 characters)',
'maxLength'=>50000,
],
'type'=>[
'type'=>'string',
'description'=>'Memory type classification',
'enum'=>BrainMemory::VALID_TYPES,
],
'tags'=>[
'type'=>'array',
'items'=>['type'=>'string'],
'description'=>'Optional tags for categorisation',