Atonom
DocumentationAPI Reference
Atonom Script

CLI & Lua development

Develop Lua tools for your Atonom agents using the CLI and your coding assistant.

Write Lua in your editor, test its behavior, and make it available to your Atonom agent. The CLI connects your local scripts to the tools in your Atonom environment.

The development loop

atonom list --json
atonom pull 42
# Edit the file returned by pull.
atonom diff 42 --json
atonom push 42 --json
atonom run 42 --no-save --inputs '{"qty":2}' --json

42 is an example tool ID. Use an ID from your own list output. If you have sandbox access, use eval to test local changes before saving.

How the pieces fit

The CLI connects your local .lua files to stored Lua script tools. Use it to download scripts, review changes, and test your tools from the terminal.

A coding agent works in your repository: it reads the contract, edits files, invokes the CLI, and inspects JSON results. No agent-specific integration is required beyond access to the CLI and workspace.

An Atonom agent owns and uses the Lua tool. It is distinct from the coding agent that helps you author the script.

The sandbox lets you test Lua with sample inputs and simulated tool responses. During a sandbox test, the CLI supplies those responses. During platform execution, Atonom handles calls to available tools and returns their results to your script.

A small authoring contract

function transform(context)
  local qty = context.qty or 0
  return { total = qty * 2 }
end

A stored script defines transform(context). Inputs become context; the return value becomes the tool's JSON result. The Lua guide covers validation, JSON helpers, and runtime limits.

Find what you need

Use the site search to find commands and examples. Use atonom --help to see the commands available in your installed version.

On this page