store_download_pbw
Download a Pebble app's latest release .pbw to a specified directory and get its path, size, and version. Uses safety checks to avoid path traversal and invalid downloads, ready for installation or emulator use.
Instructions
Download an app's latest-release .pbw to dest_dir.
Creates dest_dir if needed, writes the file, and returns its path
and byte size (plus the app title and version). The on-disk filename is
derived from the (untrusted) appstore response but always sanitized to a
single basename inside dest_dir — a hostile id/version cannot
traverse out. Refuses with a clear error if: the app has no published
.pbw; dest_dir exists as a non-directory; the body is empty
(0 bytes); or the body exceeds a 32 MiB safety cap (real .pbw files are
well under a megabyte). Sends the polite pebble-mcp User-Agent. This
feeds the install/emulator flow — hand the returned path to a Tier 3
install tool.
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": {
"app_id": "<app_id>",
"dest_dir": "<dest_dir>"
},
"name": "store_download_pbw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | ||
| dest_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||