draw_box
Draw a rectangular box on an ASCII canvas using x, y coordinates for top-left corner, width, and height in characters. Optionally include a label displayed at the top border center.
Instructions
在画布上绘制一个矩形框。x/y 是左上角坐标,w/h 是宽高(字符单位)。label 可选,显示在顶边框中央。
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": {
"x": "<x>",
"y": "<y>",
"w": "<w>",
"h": "<h>"
},
"name": "draw_box"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | 高度(至少 3) | |
| w | Yes | 宽度(至少 3) | |
| x | Yes | 左上角 x 坐标 | |
| y | Yes | 左上角 y 坐标 | |
| label | No | 可选标签文字 |