field_exists
Check if a named field exists in an HWP document by providing the document ID and field name. Verify field presence before modifying content to avoid errors.
Instructions
Check if a named field exists in the document.
Args: doc_id: Document ID from open_document name: Field name 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": "field_exists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| doc_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||