hwp_find_replace_nth
Replace only the nth occurrence of a specific text in an HWP document, leaving other instances unchanged.
Instructions
문서에서 N번째로 나타나는 텍스트만 치환합니다. 같은 텍스트가 여러 곳에 있을 때 특정 위치만 바꿀 때 사용하세요. AllReplace는 전체를 바꾸지만 이 도구는 지정한 N번째만 바꿉니다.
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": {
"find": "<find>",
"replace": "<replace>",
"nth": "<nth>"
},
"name": "hwp_find_replace_nth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | Yes | 몇 번째 매칭을 치환할지 (1부터 시작) | |
| find | Yes | 찾을 텍스트 | |
| replace | Yes | 바꿀 텍스트 |