automation-context-manager-async-with

Status: IN

The `automation()` context manager is the entry point for all FTL2 remote operations, used with `async with`.

Source: entries/2026/05/11/servercraft-CLAUDE.md

Example

async with automation() as ftl:
    result = await ftl.file(path="/tmp/test", state="directory")
    await ftl.command(cmd="echo 'Hello from FTL2!'")

JSON