docker_buildx_build
Builds Docker images with Buildx from a context path or URL, supporting tags, target stages, multi-platform builds, caching, and optional push or local load.
Instructions
Build an image with Docker Buildx
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": "docker_buildx_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| load | No | Load the result into the local image store | |
| push | No | Push the result to the registry | |
| tags | No | Image tags | |
| target | No | Target build stage | |
| builder | No | Builder instance to use | |
| context | Yes | Build context path or URL | |
| cache_to | No | Cache export destinations | |
| no_cache | No | Do not use cache | |
| platform | No | Target platforms | |
| build_args | No | Build arguments | |
| cache_from | No | External cache sources | |
| dockerfile | No | Path to the Dockerfile | |
| timeout_seconds | No | Maximum build time in seconds (1-3600) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||