plot3d_expression
Render a 3D surface plot from a two-variable expression, with custom variable names, ranges, and PNG or SVG output.
Instructions
Plot a 3D surface of a two-variable expression as a rendered image
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 |