opencode
opencode copied to clipboard
feat(cli): Support debug tool calling directly in CLI.
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"
}
}