pio_build
Compile a PlatformIO project to surface compiler errors, warnings, memory usage, and build logs; build one or multiple environments and fix reported issues before rebuilding.
Instructions
Compile the project (pio run). Returns a status, parsed compiler errors and warnings with file/line/column, RAM and Flash usage percentages, the last 40 lines of output, and a path to the full log. Fix the listed errors, then build again. First builds may take minutes while toolchains download. Pass envs=[...] to build several environments in one call, one after another; the result lists ok, status, errors and memory per env and keeps going when one env fails.
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": "pio_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| envs | No | ||
| jobs | No | ||
| verbose | No | ||
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| project_dir | No | ||
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _mcp_instructions | No | Server-issued metadata for this conversation. |