set_caption
Add a caption to a table or image in an HWP document, specifying position, width, and gap relative to the object.
Instructions
Set caption on a table or image.
Args: doc_id: Document ID from open_document side: Caption position (0=below, 1=above, 2=left, 3=right) width: Caption width in hwpunits gap: Gap between object and caption cap_full_size: 1 to match object width
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": {
"doc_id": "<doc_id>"
},
"name": "set_caption"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | No | ||
| side | No | ||
| width | No | ||
| doc_id | Yes | ||
| cap_full_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||