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 可选,显示在顶边框中央。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | 高度(至少 3) | |
| w | Yes | 宽度(至少 3) | |
| x | Yes | 左上角 x 坐标 | |
| y | Yes | 左上角 y 坐标 | |
| label | No | 可选标签文字 |