docs(lsp): document canonical query results

This commit is contained in:
Tianyi Cui
2026-07-21 19:15:40 +08:00
parent 0cc5009f58
commit 0ed8e7baf6
4 changed files with 6 additions and 4 deletions
@@ -46,6 +46,7 @@ type ToolExecutionResult =
| `glob` | `{ paths: string[] }` |
| `grep` | `{ matches: [{ path, lineNumber, line }] }` |
| `web_search` / `web_fetch` | 归一化后的 `WebSearchResult` / `WebFetchResult` |
| `lsp` | `{ kind: "locations", locations, resolvedWorkspaceRoot }` 或 `{ kind: "hover", hover }` |
| `bash` | `{ kind: "background", taskId }` 或 `{ kind: "foreground" } & BashRunResult` |
| `task_output` / `task_list` / `task_kill` | 不含所有者或通知账务字段的公开任务快照 |
| `subagent` | 后台任务句柄或 `{ kind: "foreground", runId, output: JsonValue[] }` |