ragflow_update_metadata
Set or remove metadata across multiple RAGFlow dataset documents, with optional filters by document IDs or metadata conditions to bulk update only matching records.
Instructions
Set or remove metadata on many documents of a dataset at once.
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": {
"dataset_id": "<dataset_id>"
},
"name": "ragflow_update_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deletes | No | Keys to remove: [{"key": ..., "value": optional}] | |
| updates | No | Values to set: [{"key": ..., "value": ..., "match": optional current value}] | |
| dataset_id | Yes | Dataset (knowledge base) ID | |
| document_ids | No | Limit the change to these documents | |
| all_documents | No | Required to change every document when no selector is given | |
| metadata_condition | No | Select documents by metadata, e.g. {"logic": "and", "conditions": [{"name": "author", "comparison_operator": "is", "value": "alice"}]} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||