kb_update_document_metadata
Replace a document’s entire metadata hash to update or remove filterable key/value fields without merging or re-embedding content.
Instructions
Replace a document's metadata (single-level key/value hash) in full — no merge, no re-embed. To remove a key, pass the full new hash without it. Filterable via kb_search.
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": {
"project_id": "<project_id>",
"document_id": "<document_id>",
"metadata": "<metadata>"
},
"name": "kb_update_document_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadata | Yes | ||
| project_id | Yes | ||
| document_id | Yes |