Prepare the dev server or reload apps
metroPrepares a React Native development server or reloads connected apps through the session-bound server; runtime inputs can override the binding for one call.
Instructions
Prepare a React Native development server or ask connected apps to reload, using the development server this session is bound to. Explicit runtime inputs override that binding for one call. The binding is cleared when the session closes, and a fresh open without runtime hints also clears any leftover binding from a previous same-name session. Times out after 90s.
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": {
"action": "<action>"
},
"name": "metro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| port | No | ||
| udid | No | Apple device or simulator UDID. | |
| action | Yes | ||
| device | No | Device name; ids go in udid or serial. | |
| serial | No | Android, HarmonyOS, or Vega VVD serial. | |
| logPath | No | ||
| session | No | Session name. | |
| platform | No | Device platform. | |
| bundleUrl | No | ||
| launchUrl | No | ||
| metroHost | No | ||
| metroPort | No | ||
| timeoutMs | No | ||
| listenHost | No | ||
| statusHost | No | ||
| bridgeScope | No | ||
| projectRoot | No | ||
| deviceTarget | No | Device form factor. | |
| publicBaseUrl | No | ||
| reuseExisting | No | ||
| probeTimeoutMs | No | ||
| runtimeFilePath | No | ||
| startupTimeoutMs | No | ||
| installDependenciesIfNeeded | No |