opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(cli): Support debug tool calling directly in CLI.

Open Eric-Guo opened this issue 2 weeks ago • 2 comments

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"
  }
}

Eric-Guo avatar Jan 01 '26 08:01 Eric-Guo