[PR #6564] feat(cli): Support debug tool calling directly in CLI. #11977

Closed
opened 2026-02-16 18:16:54 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6564

State: closed
Merged: Yes


Close #7802 7802

So now we can testing tools directly in cli without calling LLM.

opencode debug agent plan --tool glob --params '{pattern: "export*", include: "*.ts"}'
{
  "tool": "glob",
  "input": {
    "pattern": "export*",
    "include": "*.ts"
  },
  "result": {
    "title": "",
    "metadata": {
      "count": 1,
      "truncated": false
    },
    "output": "/Users/guochunzhong/git/oss/opencode/packages/opencode/src/cli/cmd/export.ts"
  }
}
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6564 **State:** closed **Merged:** Yes --- Close #7802 7802 So now we can testing tools directly in cli without calling LLM. ```bash opencode debug agent plan --tool glob --params '{pattern: "export*", include: "*.ts"}' ``` ```text { "tool": "glob", "input": { "pattern": "export*", "include": "*.ts" }, "result": { "title": "", "metadata": { "count": 1, "truncated": false }, "output": "/Users/guochunzhong/git/oss/opencode/packages/opencode/src/cli/cmd/export.ts" } } ```
yindo added the pull-request label 2026-02-16 18:16:54 -05:00
yindo closed this issue 2026-02-16 18:16:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11977