Version control for data agent-created files. Read, write, diff, branch, and track history with optional one-call save and auto-registration workflows.
File Operations and Diffs
Commit and Branch Management
History and Status Tracking
Save and Register Workflow
PDF Parsing
git_action
Name | Definition | Format |
---|---|---|
action | Git operation to perform. Supported values: list_files , read_file , write_to_file , save_file , generate_diff , apply_diff , commit , get_history , create_branch , switch_branch , get_branch , get_status , remove_file . | String |
Action | Required fields |
---|---|
list_files | path (optional filter) |
read_file | file_path |
write_to_file | file_path , content |
save_file | source_path , target_path (optional), target_filename (optional), auto_register (optional), auto_attach_entity_type (optional when auto_register is true), auto_attach_entity_id (optional when auto_register is true) |
generate_diff | old_content , new_content , context_lines (optional) |
apply_diff | file_path , diff_content |
commit | commit_message |
get_history | file_path (optional), max_count (optional) |
create_branch | branch_name |
switch_branch | branch_name |
get_branch | (no additional fields) |
get_status | (no additional fields) |
remove_file | file_path |
action: save_file
with auto_register: true
to save to Git and automatically register and attach the file in one step.pdf_parser
Name | Definition | Format |
---|---|---|
filepath | Path or URL to a PDF for extraction. | String |
remove_file
**and ** apply_diff
**can delete or overwrite content. ** Verify targets and keep changes committed to reversible branches.list_files
to scope the repo or get_status
to see pending changes.create_branch
and switch_branch
to work safely on a feature line.write_to_file
for text edits or save_file
for efficient binary and one-call save and attach.generate_diff
and get_history
to validate changes before commit.commit
with a descriptive message and confirm via get_status
.save_file
avoids loading file bytes into chat context and pairs well with auto-registration and attachment.file_path
fields.commit_message
values for traceability.auto_register
is true, provide correct auto_attach_entity_type
and auto_attach_entity_id
.file_manager_tools
.