stop-metro
Stops the Metro bundler process listening on a specified port and asks for user confirmation before sending SIGTERM. Use when Metro must be stopped or restarted.
Instructions
Stop the Metro bundler process listening on port. Use when the user asks to stop Metro or when Metro must be restarted - do not offer it when a task wraps up, since the next task would wait on a cold Metro start. Returns { stopped, port, pids }: stopped=true when it sent SIGTERM to every listening pid it found (or the pid had already exited), stopped=false when it found none. Fails if the port lookup cannot run or times out, if it finds a listener but not the process that owns it, or if it cannot signal a listener it found (e.g. EPERM). On macOS another user's listener is detected only when no other listener on the port is visible, so it can survive stopped=true. This is DESTRUCTIVE: always ask the user for confirmation before calling this tool.
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": "stop-metro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | TCP port Metro is listening on. Default: 8081. Range: 1 to 65535. |