crosspad_submodule_update
Updates a submodule in a parent repo to the latest commit on a tracking branch via fetch, checkout, and stage. Discards local submodule commits not on the remote branch.
Instructions
Update a submodule in a parent repo to the latest commit on a tracking branch (git fetch + checkout origin/ + stage). Destructive: discards local commits in the submodule that are not on the remote branch.
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": {
"submodule": "<submodule>",
"repo": "<repo>"
},
"name": "crosspad_submodule_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Parent repo containing the submodule (idf, pc, arduino, or full name) | |
| branch | No | Remote branch to track (e.g. main, develop) | main |
| submodule | Yes | Which submodule to operate on |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docs | No | ||
| next | No | ||
| repo | Yes | ||
| error | No | ||
| notice | No | ||
| staged | Yes | ||
| new_sha | Yes | ||
| old_sha | Yes | ||
| success | Yes | ||
| submodule | Yes | ||
| changed_files | Yes | ||
| commits_pulled | Yes |