check_x_object
Verify the existence of an X object by name in an HWP document using its document ID, allowing you to proceed or handle missing objects.
Instructions
Check if an X object exists by name.
Args: doc_id: Document ID from open_document name: Name of the X object to check
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": "<name>"
},
"name": "check_x_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| doc_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||