SuperAPI AI Directory

fastmoss-cli

Design & creation

View repository

Updated 10-15 21:41

About this skill

FastMoss CLI

Use the fastmoss command to discover and call FastMoss tools.

Startup checks

  1. Check the CLI is available:

    fastmoss --version
    

    If the FastMoss CLI is not installed or the command is not found, install it first:

    npm install -g @fastmoss/cli
    

    To update an existing FastMoss CLI installation to the latest package version, run:

npm install -g @fastmoss/cli@latest

Then continue to the login check.

  1. Check login status:

    fastmoss whoami
    
  2. If not logged in, ask the user to provide or configure an API key:

    fastmoss login --api-key <your-api-key>
    

Tool workflow

  1. Read references/tool-call.md before invoking a tool.

  2. Read references/tools.md to choose the tool and understand its parameters.

  3. Every fastmoss call MUST include agent client metadata. Prefer environment variables when making one or more calls in the same shell session:

    FASTMOSS_CLIENT_NAME="<client-name>" FASTMOSS_CLIENT_VERSION="<client-version>" fastmoss call --tool <tool_name> --args '<json>' --output mcp
    

    Or pass explicit flags for a single call:

    fastmoss call --client-name "<client-name>" --client-version "<client-version>" --tool <tool_name> --args '<json>' --output mcp
    

    Use the actual client name and version when available. Do not invent a version number; if the runtime does not expose a version, use the client name and omit the version only if the CLI allows it.

Prefer --output mcp when an LLM or agent will read and reason over the tool response. Use --output data when the user needs a concise end-user payload. Use --output rpc only when debugging raw RPC responses.

If the analysis result needs FastMoss detail-page links, call fastmoss_detail_url_examples first to get the link assembly rules, then build links from the returned examples and IDs in the analysis result.

References

  • references/cli.md: CLI command reference.
  • references/tool-call.md: safe calling patterns, quoting, output modes, and error handling.
  • references/tools.md: static FastMoss tool catalog index. Read the matching category file from this index instead of loading all tools at once.