Plot3D Expression
plot3d_expressionPlot a 3D surface from a two-variable math expression, returning a rendered PNG or SVG image.
Instructions
Plot a 3D surface of a two-variable expression as a rendered image
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": "plot3d_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Workspace to use, as a name or a portable handle. Workspaces have independent variables. A name is scoped to this MCP session; a handle returned by start_sage_session (workspace_token) reaches the same workspace across reconnects and is a bearer credential -- keep it secret. Omit for 'default'. | default |
| expression | Yes | Expression of two variables (e.g. 'sin(x)*cos(y)') | |
| x_variable | No | First variable | x |
| y_variable | No | Second variable | y |
| x_range_max | No | X upper bound | |
| x_range_min | No | X lower bound | |
| y_range_max | No | Y upper bound | |
| y_range_min | No | Y lower bound | |
| image_format | No | Image format to return: 'png' (raster) or 'svg' (vector, smaller) | png |