# replace_by_anchor

find_text가 반환한 anchor 위치에서 run 서식을 유지하며 텍스트를 치환합니다.

Agent View of the PolicyLayer registry record for `replace_by_anchor`. HTML page: https://policylayer.com/tools/airmang-hwpx-mcp-server/replace-by-anchor

## Facts

- Tool: `replace_by_anchor`
- Server: Hwpx (`airmang/hwpx-mcp-server`) — https://policylayer.com/tools/airmang-hwpx-mcp-server.md
- Homepage: https://github.com/airmang/hwpx-mcp-server
- Risk category: Write (Medium risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "replace_by_anchor",
    "arguments": {}
  }
}
```

## Why replace_by_anchor is rated Medium

The tool modifies document content by replacing text at specified locations. This is a Write operation because it creates or modifies data reversibly—text replacements can be undone. While it does not delete data permanently, the ability to modify arbitrary document content without validation constraints poses a moderate risk if an AI agent misuses anchor positions to alter sensitive document sections.

From the tool's own definition: "Tool description states it 'replaces text' ('텍스트를 치환합니다') at anchor positions while maintaining run formatting. This is a reversible modification operation."

## Use case

AI agents use replace_by_anchor to create or update resources in Hwpx, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Hwpx environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Hwpx:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "replace_by_anchor": {
      "limits": [
        {
          "counter": "replace_by_anchor_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Hwpx (108)

- `delete_paragraph` — Destructive — https://policylayer.com/tools/airmang-hwpx-mcp-server/delete-paragraph.md
- `remove_memo` — Destructive — https://policylayer.com/tools/airmang-hwpx-mcp-server/remove-memo.md
- `build_image_grid` — Execute — https://policylayer.com/tools/airmang-hwpx-mcp-server/build-image-grid.md
- `compute_report_value` — Execute — https://policylayer.com/tools/airmang-hwpx-mcp-server/compute-report-value.md
- `repair_hwpx` — Execute — https://policylayer.com/tools/airmang-hwpx-mcp-server/repair-hwpx.md
- `analyze_document_plan` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/analyze-document-plan.md
- `analyze_form_fill` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/analyze-form-fill.md
- `analyze_quality_generation` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/analyze-quality-generation.md
- `analyze_template_formfit` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/analyze-template-formfit.md
- `check_seal_compliance` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/check-seal-compliance.md
- `compare_style_profiles` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/compare-style-profiles.md
- `describe_capabilities` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/describe-capabilities.md
- `describe_template` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/describe-template.md
- `doc_diff` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/doc-diff.md
- `document_extract_json` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/document-extract-json.md
- `document_to_markdown` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/document-to-markdown.md
- `extract_style_profile` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/extract-style-profile.md
- `find_cell_by_label` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/find-cell-by-label.md
- `find_text` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/find-text.md
- `get_document_info` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/get-document-info.md
- `get_document_map` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/get-document-map.md
- `get_document_outline` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/get-document-outline.md
- `get_document_plan_schema` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/get-document-plan-schema.md
- `get_document_text` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/get-document-text.md
- `get_location_text` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/get-location-text.md
- `get_paragraph_text` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/get-paragraph-text.md
- `get_paragraphs_text` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/get-paragraphs-text.md
- `get_table_map` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/get-table-map.md
- `get_table_text` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/get-table-text.md
- `hwpx_extract_json` — Read — https://policylayer.com/tools/airmang-hwpx-mcp-server/hwpx-extract-json.md
- …and 78 more: https://policylayer.com/tools/airmang-hwpx-mcp-server.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=airmang-hwpx-mcp-server · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/airmang-hwpx-mcp-server
