dsh-notion
Four consolidated Notion tools for DeepSeek Harness over the official ntn CLI: search, get, page, query
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:tututuhehehe/dsh-notion3. 配置 token
token 不写进插件代码,按优先级读取:
- 环境变量
NOTION_API_TOKEN - 插件目录内的
notion-token文件(首个非注释行) ntn login保存的登录态
export NOTION_API_TOKEN=secret_xxx
### 配置项
| 字段 | 默认 | 说明 |
| --- | --- | --- |
| `tokenFile` | `notion-token` | token 文件;相对路径按插件目录解析 |
| `workspaceId` | 空 | 多 workspace token 时指定(`NOTION_WORKSPACE_ID`) |
| `ntnPath` | 自动发现 | `ntn` 可执行文件路径,自动兜底 `/opt/homebrew/bin`、`/usr/local/bin`、PATH |
| `timeoutMs` | `60000` | 单次 `ntn` 调用超时(毫秒) |
### Usage
```jsonc
{ "tool": "notion_search", "args": { "query": "roadmap", "limit": 10 } }
{ "tool": "notion_get", "args": { "id_or_url": "
" } }
{ "tool": "notion_page", "args": { "action": "create", "parent": "page:",
"props": { "body_content": "# Title\n\nBody" } } }
{ "tool": "notion_query", "args": { "database_or_data_source": "",
"filter": { "property": "Done", "checkbox": { "equals": false } } } }
notion_page takes action: create | edit | attach | trash. Two props keys are page fields rather than columns: body_content is the Markdown body, and icon is the page icon (an emoji such as "🎯", an http(s) image URL, or null to clear it). Every other props key is a property name converted by column type.