docker_build
Build a Docker image from a Dockerfile, setting the image tag, build context directory, and optional Dockerfile path.
Instructions
Build a Docker image from a Dockerfile.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "docker_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Image name and tag (e.g. "myapp:latest"). | |
| confirm | No | Set to True to confirm when required by config. | |
| context | No | Build context directory. Default: current directory. | . |
| dockerfile | No | Path to Dockerfile if not in the context root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||