get_expression_info
Analyze the structure of any Wolfram expression, returning head, full form, depth, leaf count, and type flags for debugging and comprehension.
Instructions
Get detailed structural information about a Wolfram expression.
Like Python's type() on steroids - shows Head, FullForm, tree structure, depth, leaf count, and type checks (NumericQ, ListQ, etc.)
Args: expression: Wolfram Language expression to analyze
Returns: Structural information: head, full form, depth, leaf count, type flags
Example: get_expression_info("{{1,2},{3,4}}") -> {head: "List", depth: 3, dimensions: [2,2]} get_expression_info("Sin[x] + Cos[x]") -> {head: "Plus", leaf_count: 3}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |