workflow_pipeline
Builds firmware, runs host unit tests, then optionally flashes and monitors the target in one call. Use it to validate code before any Flash write, keeping hardware safe by default.
Instructions
One-call build → host tests → optional flash/run → optional evidence / 一体化流水线.
Safe by default: flash=False. flash=True requires confirm=True (real Flash write). host_test_enabled=True runs native unit tests BEFORE any Flash write; the stage is skipped when no driver/compiler exists. host_test_opt="both" runs -O0 and -O3. observe_s>0 starts a short monitor, captures one report, then releases hardware.
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": {
"project_path": "<project_path>"
},
"name": "workflow_pipeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flash | No | ||
| preset | No | Debug | |
| confirm | No | ||
| host_cc | No | ||
| chip_name | No | ||
| observe_s | No | ||
| timeout_s | No | ||
| sample_cpu | No | ||
| project_path | Yes | ||
| host_test_opt | No | both | |
| serial_number | No | ||
| host_test_enabled | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||