df_import_version_from_git
Import a version from a Git repository into DataForge, creating a new version or replacing an existing one. Preview before importing to avoid permanent data deletion.
Instructions
PERMANENTLY DELETES DATA IN DATAFORGE. Import a version from Git. target.method=create makes a new version; target.method=replace OVERWRITES THE VERSION IN THE PATH entirely. Run df_preview_import first. conflict_strategy=overwrite also applies deletions.
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>",
"version_id": "<version_id>",
"repository_url": "<repository_url>",
"branch": "<branch>",
"target": "<target>"
},
"name": "df_import_version_from_git"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| branch | Yes | ||
| target | Yes | ||
| options | No | ||
| project_id | Yes | DataForge project id | |
| version_id | Yes | Project version id | |
| commit_hash | No | ||
| connection_id | No | ||
| authentication | No | Git credentials, sent over TLS. Never logged, never returned. | |
| repository_url | Yes | ||
| idempotency_key | No | Optional UUID v4. Reusing a key within 24 hours replays the original response instead of applying the change twice. One is generated automatically when omitted. | |
| conflict_strategy | No | smart_merge |