Anchorage API reference
    Preparing search index...

    Describes how to invoke and parse one agent CLI.

    interface AgentCliDefinition {
        binary: string;
        buildFlags: (input: AgentCliInput) => string[];
        description: string;
        egress: readonly string[];
        id: string;
        parseOutput?: (stdout: string) => string | undefined;
    }
    Index

    Properties

    binary: string

    Default executable name or path.

    buildFlags: (input: AgentCliInput) => string[]

    The option flags and any subcommand, excluding the prompt. The wrapper supplies a redacted prompt value to this callback and appends the real prompt after --. Put option values in --flag=value form so a value starting with - cannot become a separate flag.

    description: string

    Tool description exposed to the model.

    egress: readonly string[]

    Hosts the CLI itself calls; declared on the manifest for egress policy.

    id: string

    Default connector id.

    parseOutput?: (stdout: string) => string | undefined

    Extract the agent's final text from stdout; return undefined to fall back to raw stdout (e.g. on output-format drift across CLI versions).