The simplest Factorly tool: wrap the echo command as a callable CLI tool.
# .factorly/factorly.yaml
tools:
echo:
type: cli
description: "Echo a message back"
command: echo
args: ["{{text}}"]# Initialize and add the config above
factorly init
# Call the tool
factorly call echo --text "hello"
# Output: hello
# View the audit log entry
factorly logs -n 1factorly callfinds theechotool in your config.- It substitutes
{{text}}with the value you passed ("hello"). - It runs
echo helloas a subprocess and returns the output. - The call is recorded in the audit log — visible with
factorly logs.