Terminal
Build a function-calling agent
Map approved function calls to catalog tools in a bounded local model/tool loop.
dreamtune agent runs a local model/tool loop through MCP. You explicitly map each
function to a catalog endpoint. A model cannot gain access by inventing a new
function name.
The runner submits a model turn, validates returned function arguments, executes
the mapped tool and returns a tool message with the matching call ID. It retains
assistant messages and provider reasoning details for continuation.
Operations run sequentially. Derived operation keys use the saved workflow key
and operation index. Preserve the root key and configuration during recovery.