knowledge/main/tool_call_reference_examples.md
These examples are intentionally short and high signal so tool-call shape guidance can live in knowledge without bloating the default prompt stack.
text_editor) vs non-namespaced tool (code_execution_tool)text_editor requires method in tool_name:
text_editor:readtext_editor:writetext_editor:patchcode_execution_tool uses a plain tool name plus behavior in tool_args.runtime.{
"tool_name": "text_editor:read",
"tool_args": {
"path": "/workspace/agent-zero/README.md",
"line_from": 1,
"line_to": 60
}
}
code_execution_tool{
"tool_name": "code_execution_tool",
"tool_args": {
"runtime": "terminal",
"session": 0,
"reset": false,
"code": "pwd"
}
}
{
"tool_name": "code_execution_tool",
"tool_args": {
"runtime": "output",
"session": 0
}
}
{
"tool_name": "memory_load",
"tool_args": {
"query": "tool argument format",
"limit": 3,
"threshold": 0.7
}
}
{
"tool_name": "call_subordinate",
"tool_args": {
"profile": "",
"message": "Review this patch for edge cases.",
"reset": true
}
}
Use these examples as structure references only. Adapt arguments to the current task.