simulator.log_stream.stop
Stop streaming system logs from the iOS Simulator to monitor and debug Expo/React Native applications during development.
Instructions
Stop streaming simulator system logs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/simulator/logs.ts:78-91 (handler)Core implementation of stopLogStream(): kills the log stream process (execa 'xcrun simctl spawn booted log stream') if running, updates state variables.export async function stopLogStream(): Promise<void> { logger.info("simulator", "Stopping simulator log stream"); if (!logStreamProcess) { logger.info("simulator", "No log stream is running"); return; } logStreamProcess.kill("SIGTERM"); logStreamProcess = null; isStreaming = false; logger.info("simulator", "Simulator log stream stopped"); }
- src/mcp/server.ts:251-270 (registration)MCP tool registration for 'simulator.log_stream.stop': thin wrapper around stopLogStream() with MCP response formatting and error handling.server.tool( "simulator.log_stream.stop", "Stop streaming simulator system logs", {}, async () => { try { await stopLogStream(); return { content: [ { type: "text", text: JSON.stringify({ success: true, message: "Log stream stopped" }), }, ], }; } catch (error) { return handleToolError(error); } } );