Tool
Object Hierarchy:
Description:
public class Tool :
BaseTool,
WrapInterface
Tool for executing terminal commands in the project root directory.
Simple commands (single command or cd <path> && <command> with no bash operators) use permission caching based on
resolved executable realpath. Complex commands (with bash operators or multiple &&) always require approval.
Content:
Properties:
Creation methods:
Methods:
- public BaseTool clone ()
- public override Type config_class ()
- protected override RequestBase? deserialize (Node parameters_node)
- public RequestBase? deserialize_wrapped (Node parameters_node, string command_template)
Implements WrapInterface.deserialize_wrapped() for wrapped tool
execution.
- public override async string execute (ChatBase chat_call, ToolCall tool_call, bool is_markdown = false)
When is_markdown is true (skills/task executor path), wrap stdout in a
fenced code block, same as read_file. Terminal output is opaque bytes; we do not pass it through as markdown. Tools that return
structured markdown (e.g. codebase_search via SearchResult.to_markdown()) do not override execute — only plain-output tools fence
here.
Inherited Members:
All known members inherited from class OLLMchat.Tool.BaseTool
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface OLLMchat.Tool.WrapInterface
All known members inherited from interface Json.Serializable
- default_deserialize_property
- default_serialize_property
- deserialize_property
- find_property
- get_property
- list_properties
- serialize_property
- set_property