opencode_project
Retrieve current or all project details, available agents and slash commands, plus Git/VCS branch and status to select agents or commands for OpenCode sessions.
Instructions
Get project info and available agents/commands. Actions: current (current project), list (all projects), agents (list available agents — use to know what agent names to pass to prompt/shell), commands (list available slash commands for session command action), vcs (git/VCS info — branch, status, etc.)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "opencode_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes |