hwp_xml_edit_table_cell
Find and replace text in a specific cell of a table within an HWPX document, preserving character formatting and processing XML directly without HWP program.
Instructions
HWPX 파일의 특정 표 셀(row, col)에서 텍스트를 직접 찾아 바꿉니다. (v0.7.0 신규) 한글 프로그램 없이 XML 경로(tc → subList → p → run → t)로 처리. linesegarray 셀 내부만 자동 삭제. charPrIDRef(서식 ID)는 보존. .hwp는 미지원 (hwp_fill_table_cells 사용).
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": {
"file_path": "<file_path>",
"table_index": "<table_index>",
"row": "<row>",
"col": "<col>",
"find": "<find>",
"replace": "<replace>"
},
"name": "hwp_xml_edit_table_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | Yes | 0-based 열 인덱스 | |
| row | Yes | 0-based 행 인덱스 | |
| find | Yes | 찾을 텍스트 | |
| replace | Yes | 바꿀 텍스트 | |
| file_path | Yes | 수정할 HWPX 파일 경로 (.hwpx만 지원) | |
| occurrence | No | 치환 횟수 (0=전체, 1+=N번째). 기본 0 | |
| output_path | No | 저장 경로 (생략 시 원본 덮어쓰기) | |
| table_index | Yes | 0-based 평탄화 표 인덱스 (중첩 표는 v0.7.2.1) |