freebuff_run
Run a coding agent on a prompt in your workspace, with read-only Q&A by default or full edit/terminal capability when needed. Returns the final answer and session log.
Instructions
Run the Freebuff coding agent on a prompt, inside a workspace folder.
By default runs the built-in read-only 'freebuff-ask' agent, which can read files, search code, and answer questions but cannot modify anything — safe for codebase Q&A. Pass agent: 'codebuff/base@0.0.16' to let the agent edit files and run commands.
Returns the agent's final answer plus a log of what it did. Continue a conversation by passing the session_id returned from a previous run (sessions persist across server restarts).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the run. Defaults to the folder this server was started in. | |
| agent | No | Agent id to run. Defaults to 'freebuff-ask' (read-only). Use 'codebuff/base@0.0.16' for full edit/terminal capability. | |
| prompt | Yes | What you want the agent to do. | |
| cost_mode | No | Billing tier. 'free' routes to free-tier models (like the CLI's --lite mode); 'normal' uses the standard paid path. | |
| max_steps | No | Cap on agent steps to avoid runaway runs. Default 40. | |
| session_id | No | A session id returned by a previous freebuff_run call, to continue that conversation. | |
| force_resume | No | Resume even when the persisted session is estimated above the token ceiling (FREEBUFF_MCP_RESUME_MAX_TOKENS). | |
| timeout_seconds | No | Hard timeout for this run. Default 300 (5 minutes). |