add_line
Draw a straight line between two data points on a graph to create guides, connectors, or trend indicators.
Instructions
Draw a straight line between two data points on a graph.
Useful for guides, connectors, and trend indicators. For a line with an arrowhead, use add_arrow instead.
Args: graph_name: Graph name x1, y1: Start point in data coordinates x2, y2: End point in data coordinates
Returns: Success message
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": {
"graph_name": "<graph_name>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "add_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_name | Yes | ||
| x1 | Yes | ||
| y1 | Yes | ||
| x2 | Yes | ||
| y2 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |