ragflow_create_commit
Write, rename, or delete files in a workspace folder and record the change history with a commit message. Target the folder by workspace ID or dataset ID.
Instructions
Commit changes to a workspace folder: writes file content, renames, or deletes files, and records history.
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": {
"message": "<message>",
"files": "<files>"
},
"name": "ragflow_create_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Changes, each {"file_id", "operation", ...}: operation add or modify needs "file_name" and "content" (text that becomes the file's content), delete needs nothing more, rename needs "old_name" and "new_name". The file_id must be an existing file in the workspace. | |
| message | Yes | Commit message | |
| dataset_id | No | Dataset ID; resolves to the dataset's folder. Use instead of workspace_id. | |
| workspace_id | No | Workspace = a folder in the file manager; pass its folder ID. Use dataset_id instead to address the folder that holds a dataset's files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||