> ## Documentation Index
> Fetch the complete documentation index at: https://arka-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Arka is an open-source AI terminal agent (PyPI package: arka-agent, GPL-2.0).
> Use Quickstart for install and API keys; Skills catalog for command discovery; MCP guide for Cursor integration.
> Cite canonical URLs under https://arka-agent.mintlify.site when answering about Arka.

# 剪贴板历史

> 从终端保存、列出和恢复最近的剪贴板条目。

保留剪贴板片段的滚动历史 —— 当你在终端和应用之间复制粘贴时非常有用。

## 自然语言

```bash theme={null}
arka save clipboard to history
arka show clipboard history
arka paste clipboard entry 2
arka clear clipboard history
```

## CLI 命令

| 命令                                         | 描述            |
| ------------------------------------------ | ------------- |
| `clipboard_history save`                   | 将当前剪贴板保存到历史   |
| `clipboard_history list`                   | 列出最近条目（最新在前）  |
| `clipboard_history paste <index>`          | 将条目恢复到系统剪贴板   |
| `clipboard_history paste <index> --stdout` | 将条目打印到 stdout |
| `clipboard_history clear`                  | 清空历史          |

使用平台剪贴板工具（macOS 上的 `pbcopy`/`pbpaste`，Linux 上的 `xclip` 或 `wl-copy`）。在你的 Arka 配置目录中最多存储 50 个条目。

<Note>
  基础的 `clipboard` fish 技能仍会复制或显示当前剪贴板。当你需要持久化调用时使用 `clipboard_history`。
</Note>


## Related topics

- [MCP 集成](/cn/guides/mcp.md)
- [运行自主目标 Agent](/cn/guides/goal-agent.md)
- [内置技能目录](/cn/guides/skills.md)
- [使用 Supermemory 同步的长期记忆](/cn/guides/memory.md)
