image_build
Build a Docker image from a tar context file with optional Dockerfile and tags. Set build-time variables as needed.
Instructions
Build a Docker image from a context (tar file path) and optional Dockerfile.
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>"
},
"name": "image_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Tag for the built image (e.g., "myapp:latest"). | |
| context | Yes | Path to the build context (tar file). | |
| buildargs | No | Build-time variables as key-value pairs. | |
| dockerfile | No | Path to the Dockerfile within the context. Default: "Dockerfile". |