sandbox_git_init
Initialize a new Git repository in a specified path inside an E2B sandbox, enabling version control for your code.
Instructions
Initialize a new git repository in a sandbox directory.
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": {
"sandboxId": "<sandboxId>",
"path": "<path>"
},
"name": "sandbox_git_init"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sandboxId | Yes | The sandbox ID. | |
| path | Yes | Path where the repository should be initialized. |