get_variables
Browse PHP variables in scope by listing names, types, and child counts for a chosen context and stack depth.
Instructions
List all variables in scope with metadata (names, types, child counts). Use get_variable() to inspect specific variable values. Returns lightweight metadata for browsing the variable tree.
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": "get_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_id | No | Context ID: 0=Local variables, 1=Superglobals, 2=User constants | |
| session_id | No | Session ID | |
| stack_depth | No | Stack frame depth (0 = current frame) |