pio_monitor_capture
Captures serial output in one shot: opens the port, collects lines for a set duration or until a regex matches, then closes it—ideal for grabbing boot logs after firmware upload.
Instructions
One-shot serial capture with no session to manage: open the port, collect output for up to seconds (or until regex until matches), close the port, and return the lines. Ideal right after pio_upload to grab the boot log.
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_monitor_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| baud | No | ||
| port | No | ||
| until | No | ||
| seconds | 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. | |
| max_lines | No | ||
| 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. |