apply_to_current_hwp_document
Apply a previously previewed edit to the active HWP document using a preview token. The token is revalidated before mutating the document.
Instructions
Apply a previously previewed pathless current-document edit by token only.
The token is authoritative: no fresh values or target hints, and the selected broker and exact target are revalidated before mutating the live document. complete_and_load tokens instead write the verified completion to the NEW file from the preview and open it as a new tab — the original stays untouched and the created path is returned even if the open fails. This path does not expose a timeout_seconds worker-isolation contract.
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": {
"preview_token": "<preview_token>"
},
"name": "apply_to_current_hwp_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview_token | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |