docker_build
Builds Docker images from local directories or HTTPS Git repositories using a specified tag and Dockerfile. Requires confirmation to proceed.
Instructions
Build an image with docker build. Needs confirm=true.
context is a folder on the host (in an allowed folder) or an https git URL such as https://github.com/example/repo.git#main. tag is the image name, for example myapp:latest. dockerfile is a path inside the context. Build args are visible in the image history: do not put real secrets in them.
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": {
"context": "<context>",
"tag": "<tag>"
},
"name": "docker_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | ||
| host | No | ||
| pull | No | ||
| target | No | ||
| confirm | No | ||
| context | Yes | ||
| no_cache | No | ||
| platform | No | ||
| build_args | No | ||
| dockerfile | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |