build_image
Build a Docker image from a Dockerfile using a build context and tag. Configure Dockerfile path, build arguments, caching, or pull behavior to meet your requirements.
Instructions
Build an image from a 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": {
"tag": "<tag>",
"context": "<context>"
},
"name": "build_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Name and optionally a tag in the name:tag format | |
| pull | No | Always attempt to pull a newer version of the image | |
| context | Yes | Path to the build context | |
| noCache | No | Do not use cache when building the image | |
| buildArgs | No | Build-time variables | |
| dockerfile | No | Path to Dockerfile |