canvas_batch
Runs a batch of ASCII drawing commands (boxes, lines, arrows, text) in sequence and returns the final canvas as ASCII art.
Instructions
批量执行绘图指令并返回最终 ASCII 结果。ops 是指令数组,每条指令包含 op 字段指定操作类型(canvas_new / draw_box / draw_line / draw_arrow / add_text),以及对应参数。执行完所有指令后自动导出画布。
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": {
"ops": "<ops>"
},
"name": "canvas_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | 绘图指令数组,按顺序执行 |