inspect_global
Inspect global objects to view properties, types, and function callability before method calls, preventing errors in React Native development with Metro Logs MCP.
Instructions
Inspect a global object to see its properties, types, and whether they are callable functions. Use this BEFORE calling methods on unfamiliar objects to avoid errors.
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": {
"objectName": "<objectName>"
},
"name": "inspect_global"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectName | Yes | Name of the global object to inspect (e.g., '__EXPO_ROUTER__', '__APOLLO_CLIENT__') |