expand
Multiplies out algebraic expressions to produce simplified, expanded form.
Instructions
Expands an expression.
Args: expression: The expression to expand as a string.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> expand("(x + 1)2") {'result': 'x2 + 2*x + 1'}
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": {
"expression": "<expression>"
},
"name": "expand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |