crosspad_check
Checks whether the PC simulator build is current by detecting a stale exe, new sources missing from the build system, and dirty submodules. Run before building to decide if a rebuild is needed.
Instructions
[PC] Check whether the PC simulator build is current: detects a stale exe, new sources missing from the build system and dirty submodules. Use before crosspad_build to decide whether a rebuild is needed.
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": "crosspad_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | No | Platform — currently only 'pc' is supported here. | pc |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docs | No | ||
| next | No | ||
| error | No | ||
| notice | No | ||
| reasons | Yes | ||
| success | Yes | ||
| exe_path | Yes | ||
| exe_exists | Yes | ||
| needs_rebuild | Yes | ||
| exe_age_seconds | Yes | Seconds since the simulator binary was built; null when there is none. | |
| new_source_files | Yes | Source files the CMake cache does not know yet. | |
| needs_reconfigure | Yes | CMake must run again (new source files, or a submodule pin moved). | |
| submodule_changes | Yes | crosspad-core / crosspad-gui: the pinned commit against the checked-out one. |