Agents

Agents and scripts

Two ways to write a page and keep it current: an agent calling Legato's MCP tools, or a script running the legato command.

An agent writes a page by calling a tool. Legato's MCP server runs on your Mac, started by the agent's own app, and its tools write, read and delete pages, arrange the sidebar, install a service's pages from a template, and add to History and lists. Claude Code, Codex, Claude Desktop and any other client that starts a local command can use it. A chat app in a browser can't reach it.

A script does the same work with the legato command, which makes the same checks and gives the same answers. Either way the result is a page file in the Pages folder, so an agent can set a page up and a script can keep it current.

Use them for data that takes a few calls, some arithmetic, a command-line tool or an agent's judgement. When the data comes from one API that answers JSON, a page with sources fetches it without either.

With an agent

With a script