ragflow_get_commit_file_content
Retrieve a file's content exactly as it existed at a specific commit, using commit and file IDs. Ideal for reviewing past versions or verifying historical changes.
Instructions
Read a file's content as it was at one commit.
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": {
"commit_id": "<commit_id>",
"file_id": "<file_id>"
},
"name": "ragflow_get_commit_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File or folder ID in the RAGFlow file manager | |
| commit_id | Yes | Commit ID | |
| max_chars | No | Return at most this many characters of text | |
| 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 | |||