plot_function
Plot a single-variable mathematical function over a defined interval, with control over sampling points and an optional title.
Instructions
在区间 [start, stop] 上绘制单变量函数曲线。
参数: expression: 以 'x' 为变量的数学表达式,例如 "sin(x)/x"。 start: 定义域左边界。 stop: 定义域右边界。 points: 采样点数(2-5000)。 title: 可选的图标题。
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>",
"start": "<start>",
"stop": "<stop>"
},
"name": "plot_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | Yes | ||
| start | Yes | ||
| title | No | ||
| points | No | ||
| expression | Yes |