flash
Program your compiled project onto an embedded development board after confirming budget and serial port availability. Includes safety guardrails for reliable operation.
Instructions
把项目烧录到开发板。⚠️ 有副作用,受烧录预算上限保护。调用前先用 status 确认还有额度、串口空闲。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | 串口设备路径。省略则自动检测(推荐:烧录后端口可能变)。 | |
| board | No | 板型 id。省略则由 sketch.yaml 的 FQBN 推断或用默认。 | |
| reason | Yes | 写给人看的:这次改了什么、为什么值得再烧一次。 | |
| project_dir | No | 项目目录。省略则用 server 启动时的默认项目。 |