---
title: "edit.copy: Copy — Doc kit command — Kition"
description: "Copies the selection to the clipboard without changing the document."
canonical: "https://developer.kition.ai/docs/kits/doc/commands/edit.copy"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/doc/commands/edit.copy](https://developer.kition.ai/docs/kits/doc/commands/edit.copy)

# edit.copy

**Copy.** Copies the selection to the clipboard without changing the document.

- Kit: Doc 0.1.0 (.docx); reference: [Doc kit commands](https://developer.kition.ai/docs/kits/doc.md)
- Changes the document: no

## Parameters

None.

## Call through doc_run

```text
doc_run {
  "path": "<file>.docx",
  "steps": [{ "command": "edit.copy" }]
}
```

The required parameters, with placeholders for their types: not a tested example. doc_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `html` | `string` | no | the copy as an HTML document (empty when it has no text) |
| `text` | `string` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "html": {
      "description": "the copy as an HTML document (empty when it has no text)",
      "type": "string"
    },
    "text": {
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/doc-darwin-arm64@0.1.0 and the kit itself (doc_commands through @kition/cli@0.1.1, built from KitionAI/kition-doc@41e14a8).
