KosmoKrator

other

Samsara CLI for Shell Scripts

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

6 functions 6 read 0 write Bearer token auth

Samsara 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 Samsara CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Samsara CLI for Shell Scripts
kosmokrator integrations:configure samsara --set access_token="$SAMSARA_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call samsara.samsara_list_vehicles '{"limit":1,"after":"example_after"}' --json

Discovery Before Execution

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

kosmo integrations:docs samsara --json
kosmo integrations:docs samsara.samsara_list_vehicles --json
kosmo integrations:schema samsara.samsara_list_vehicles --json
kosmo integrations:search "Samsara" --json
kosmo integrations:list --json

Useful Samsara CLI Functions

FunctionTypeParametersDescription
samsara.samsara_list_vehicles Read limit, after List fleet vehicles from Samsara. Returns vehicle details including name, VIN, make, model, year, and GPS location. Supports pagination.
samsara.samsara_get_vehicle Read id Get detailed information about a specific vehicle by its Samsara ID, including name, VIN, make, model, year, GPS location, and odometer reading.
samsara.samsara_list_drivers Read limit, after List fleet drivers from Samsara. Returns driver details including name, username, email, phone, and driver license info. Supports pagination.
samsara.samsara_get_driver Read id Get detailed information about a specific driver by their Samsara ID, including name, username, email, phone, and driver license details.
samsara.samsara_list_sensors Read limit, after List IoT sensors from Samsara. Returns sensor details including name, type, model, connectivity, and current readings. Supports pagination.
samsara.samsara_get_current_user Read none Get the currently authenticated Samsara user profile, including name, email, role, and organization details.

Automation Notes

Related Samsara CLI Pages