Build image
build_imageBuild a Docker image from a Dockerfile by specifying a context directory and tag; optionally set a custom Dockerfile path.
Instructions
Build an image from a Dockerfile. The build context must be inside an allowed host path.
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": "build_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Tag for the built image, e.g. myapp:dev | |
| context | Yes | Build context directory on the host | |
| dockerfile | No | Path to the Dockerfile (defaults to context/Dockerfile) |