KosmoKrator

productivity

Instapaper CLI for AI Agents

Use the Instapaper CLI from KosmoKrator to call Instapaper tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

Instapaper CLI Setup

Instapaper can be configured headlessly with `kosmokrator integrations:configure instapaper`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure instapaper --set consumer_key="$INSTAPAPER_CONSUMER_KEY" --set consumer_secret="$INSTAPAPER_CONSUMER_SECRET" --enable --read allow --write ask --json
kosmokrator integrations:doctor instapaper --json
kosmokrator integrations:status --json

Credentials

Authentication type: oauth1 oauth1. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
consumer_key INSTAPAPER_CONSUMER_KEY Secret secret yes Consumer Key
consumer_secret INSTAPAPER_CONSUMER_SECRET Secret secret yes Consumer Secret
oauth_token INSTAPAPER_OAUTH_TOKEN Secret secret no OAuth Token
oauth_token_secret INSTAPAPER_OAUTH_TOKEN_SECRET Secret secret no OAuth Token Secret
simple_username INSTAPAPER_SIMPLE_USERNAME Text text no Simple API Username
simple_password INSTAPAPER_SIMPLE_PASSWORD Secret secret no Simple API Password
url INSTAPAPER_URL Text text no API URL

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call instapaper.instapaper_get_access_token '{}' --json
Provider shortcut
kosmo integrations:instapaper instapaper_get_access_token '{}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs instapaper --json
kosmo integrations:docs instapaper.instapaper_get_access_token --json
kosmo integrations:schema instapaper.instapaper_get_access_token --json
kosmo integrations:search "Instapaper" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

instapaper.instapaper_get_access_token

Exchange xAuth username and password for an Instapaper OAuth access token.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_get_access_token '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_get_access_token '{}' --json

instapaper.instapaper_verify_credentials

Verify the Instapaper OAuth credentials.

Read read
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_verify_credentials '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_verify_credentials '{}' --json

instapaper.instapaper_list_bookmarks

List Instapaper bookmarks.

Read read
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_list_bookmarks '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_list_bookmarks '{}' --json

instapaper.instapaper_update_read_progress

Update bookmark reading progress.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_update_read_progress '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_update_read_progress '{}' --json

instapaper.instapaper_add_bookmark

Add a URL to Instapaper.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_add_bookmark '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_add_bookmark '{}' --json

instapaper.instapaper_delete_bookmark

Delete an Instapaper bookmark.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_delete_bookmark '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_delete_bookmark '{}' --json

instapaper.instapaper_star_bookmark

Star an Instapaper bookmark.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_star_bookmark '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_star_bookmark '{}' --json

instapaper.instapaper_unstar_bookmark

Remove a star from an Instapaper bookmark.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_unstar_bookmark '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_unstar_bookmark '{}' --json

instapaper.instapaper_archive_bookmark

Archive an Instapaper bookmark.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_archive_bookmark '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_archive_bookmark '{}' --json

instapaper.instapaper_unarchive_bookmark

Move an archived bookmark back to unread.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_unarchive_bookmark '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_unarchive_bookmark '{}' --json

instapaper.instapaper_move_bookmark

Move a bookmark to a folder.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_move_bookmark '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_move_bookmark '{}' --json

instapaper.instapaper_get_bookmark_text

Get readable HTML text for a bookmark.

Read read
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_get_bookmark_text '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_get_bookmark_text '{}' --json

instapaper.instapaper_list_folders

List Instapaper folders.

Read read
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_list_folders '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_list_folders '{}' --json

instapaper.instapaper_add_folder

Create an Instapaper folder.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_add_folder '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_add_folder '{}' --json

instapaper.instapaper_delete_folder

Delete an Instapaper folder.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_delete_folder '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_delete_folder '{}' --json

instapaper.instapaper_set_folder_order

Set the order of Instapaper folders.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_set_folder_order '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_set_folder_order '{}' --json

instapaper.instapaper_list_highlights

List highlights for a bookmark.

Read read
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_list_highlights '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_list_highlights '{}' --json

instapaper.instapaper_create_highlight

Create a bookmark highlight.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_create_highlight '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_create_highlight '{}' --json

instapaper.instapaper_delete_highlight

Delete an Instapaper highlight.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_delete_highlight '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_delete_highlight '{}' --json

instapaper.instapaper_simple_authenticate

Validate Simple API credentials with HTTP Basic auth.

Read read
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_simple_authenticate '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_simple_authenticate '{}' --json

instapaper.instapaper_simple_add_url

Save a URL through the Instapaper Simple API.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_simple_add_url '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_simple_add_url '{}' --json

instapaper.instapaper_api_post

Call a safe relative Instapaper Full API path with OAuth signing.

Write write
Parameters
none
Generic call
kosmo integrations:call instapaper.instapaper_api_post '{}' --json
Shortcut
kosmo integrations:instapaper instapaper_api_post '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

instapaper.instapaper_get_access_token 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_get_access_token --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_verify_credentials 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_verify_credentials --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_list_bookmarks 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_list_bookmarks --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_update_read_progress 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_update_read_progress --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_add_bookmark 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_add_bookmark --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_delete_bookmark 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_delete_bookmark --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_star_bookmark 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_star_bookmark --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_unstar_bookmark 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_unstar_bookmark --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_archive_bookmark 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_archive_bookmark --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_unarchive_bookmark 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_unarchive_bookmark --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_move_bookmark 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_move_bookmark --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_get_bookmark_text 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_get_bookmark_text --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_list_folders 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_list_folders --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_add_folder 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_add_folder --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_delete_folder 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_delete_folder --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_set_folder_order 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_set_folder_order --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_list_highlights 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_list_highlights --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_create_highlight 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_create_highlight --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_delete_highlight 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_delete_highlight --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_simple_authenticate 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_simple_authenticate --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_simple_add_url 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_simple_add_url --json
ParameterTypeRequiredDescription
No parameters.
instapaper.instapaper_api_post 0 parameters
Schema command
kosmo integrations:schema instapaper.instapaper_api_post --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.