Note schemas
bm_schemaValidate notes against Picoschema schemas, infer schemas from a note type, or diff notes to detect drift, keeping Basic Memory note structures consistent.
Instructions
Basic Memory note schemas (Picoschema). command: validate notes against their schema (one note_type, one note by identifier, or every type that has a schema); infer a schema from the notes of a note_type; diff a note_type's notes against its schema to find drift. A schema is a note with type: schema whose entity field names the note type it describes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>",
"project": "<project>"
},
"name": "bm_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | What to do. | |
| project | Yes | Required project name, 'workspace/project', or project external id. Discover projects with bm_project(command='list'). Paths are relative to this project; a qualified path must agree with it. | |
| note_type | No | The frontmatter `type:` to check. Required for infer and diff. | |
| threshold | No | For infer: the share of notes a field must appear in to be suggested. | |
| identifier | No | For validate: one note, instead of a whole note type. | |
| output_format | No | text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |