KosmoKrator

automation

Phantombuster CLI for Shell Scripts

Use the Phantombuster CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.

6 functions 5 read 1 write API key auth

Phantombuster CLI for Shell Scripts

Call integration functions from shell scripts with stable JSON input and output.

Use shell scripts for small local automations that need one or more integration calls. The Phantombuster CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Phantombuster CLI for Shell Scripts
kosmokrator integrations:configure phantombuster --set api_key="$PHANTOMBUSTER_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call phantombuster.phantombuster_list_agents '{}' --json

Discovery Before Execution

Agents and scripts can inspect Phantombuster docs and schemas before choosing a function.

kosmo integrations:docs phantombuster --json
kosmo integrations:docs phantombuster.phantombuster_list_agents --json
kosmo integrations:schema phantombuster.phantombuster_list_agents --json
kosmo integrations:search "Phantombuster" --json
kosmo integrations:list --json

Useful Phantombuster CLI Functions

FunctionTypeParametersDescription
phantombuster.phantombuster_list_agents Read none List all Phantombuster agents in your account. Returns agent IDs, names, and status so you can inspect or launch them.
phantombuster.phantombuster_get_agent Read id Get details for a specific Phantombuster agent, including its configuration, last run status, and output.
phantombuster.phantombuster_launch_agent Write id Launch a Phantombuster agent to start an automation. Returns the container ID for tracking execution progress.
phantombuster.phantombuster_list_containers Read none List all Phantombuster containers (execution runs). Returns container IDs, associated agent IDs, status, and timestamps.
phantombuster.phantombuster_get_container Read id Get details for a specific Phantombuster container (execution run), including its status, output, and logs.
phantombuster.phantombuster_get_current_user Read none Get the authenticated Phantombuster user profile, including account info and plan details.

Automation Notes

Related Phantombuster CLI Pages