replace_action
Swap an existing action for a new handler, enabling custom behavior in HWP document workflows.
Instructions
Replace one action handler with another.
Args: old_action: Action name to replace new_action: Replacement action name
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": {
"old_action": "<old_action>",
"new_action": "<new_action>"
},
"name": "replace_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_action | Yes | ||
| old_action | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||