onetool pi
🧿 Pi编码代理扩展——拥有100多种工具的终极MCP桥,包括Brave、Google、Context7、Excalidraw、AWS、版本检查器、Excel、文件操作、数据库、Playwright、Chrome DevTools等等。
](https://www.npmjs.com/package/onetool-pi)  ](https://nodejs.org)
先决条件
安装
pi install npm:onetool-pi配置
添加一个 onetool 阻止到 .pi/settings.json (项目)或 ~/.pi/settings.json (全球):
{
"onetool": {
"command": "onetool",
"args": [
"--config", "~/.onetool/onetool.yaml",
"--secrets", "~/.onetool/secrets.yaml"
]
}
}替换~/.onetool/onetool.yaml和~/.onetool/secrets.yaml带有指向您自己的onetool配置和secrets文件的路径。
项目设置优先于全局设置。
可选设置:
| 密钥 | 默认值 | 描述 |
|---|---|---|
connectTimeout | 10000 | 连接超时(毫秒) |
maxBytes | (onetool默认值) | 截断这么多字节的输出 |
maxLines | (onetool默认值) | 截断这么多行的输出 |
previewLines | 10 | “单击展开”前显示的线条 |
用法
有关完整文档和可用包,请访问 onetool.beycom.online.
安装后 ot Pi中提供了该工具:
# Install skills for Pi
ot_forge.install_skills(install='ot-ref', tool='pi')
# Discover available packs
ot.packs()
# Search for tools
ot.help(query='search')
# Web search
brave.search(query='latest AI news')
# Fetch a URL
wf.fetch(url='https://...')
# Chain results in one call
results = brave.search(query='fastapi'); ot_llm.transform(text=results, prompt='summarize')命令
/ot或/ot restart--重新启动onetool连接/ot status--显示连接状态
