KosmoKrator

productivity

Lokalise Lua API for KosmoKrator Agents

Agent-facing Lua documentation and function reference for the Lokalise KosmoKrator integration.

7 functions 6 read 1 write API token auth

Lua Namespace

Agents call this integration through app.integrations.lokalise.*. Use lua_read_doc("integrations.lokalise") inside KosmoKrator to discover the same reference at runtime.

Agent-Facing Lua Docs

This is the rendered version of the full Lua documentation exposed to agents when they inspect the integration namespace.

Lokalise Integration

Tools

lokalise_list_projects

List Lokalise projects.

Parameters:

  • limit (integer, optional) — Maximum number of projects to return (default 25).
  • page (integer, optional) — Page number for pagination (default 1).

lokalise_get_project

Get details of a specific Lokalise project.

Parameters:

  • project_id (string, required) — The project ID.

lokalise_list_keys

List translation keys in a Lokalise project.

Parameters:

  • project_id (string, required) — The project ID.
  • limit (integer, optional) — Maximum number of keys to return (default 25).
  • page (integer, optional) — Page number for pagination (default 1).

lokalise_get_key

Get details of a specific translation key.

Parameters:

  • project_id (string, required) — The project ID.
  • key_id (integer, required) — The key ID.

lokalise_create_key

Create a new translation key in a Lokalise project.

Parameters:

  • project_id (string, required) — The project ID.
  • key_name (string, required) — The key name (e.g. “app.welcome”).
  • platforms (array, optional) — List of platforms (e.g. [“web”, “ios”, “android”]).
  • translations (object, optional) — Key-value map of language ISO codes to translation values (e.g. {“en”: “Welcome”, “fr”: “Bienvenue”}).
  • description (string, optional) — Description for the key.
  • tags (array, optional) — List of tags to assign to the key.

lokalise_list_translations

List translations in a Lokalise project.

Parameters:

  • project_id (string, required) — The project ID.
  • limit (integer, optional) — Maximum number of translations to return (default 25).
  • page (integer, optional) — Page number for pagination (default 1).

lokalise_get_current_user

Get the currently authenticated Lokalise user.

Parameters: None.

Raw agent markdown
# Lokalise Integration

## Tools

### lokalise_list_projects
List Lokalise projects.

**Parameters:**
- `limit` (integer, optional) — Maximum number of projects to return (default 25).
- `page` (integer, optional) — Page number for pagination (default 1).

### lokalise_get_project
Get details of a specific Lokalise project.

**Parameters:**
- `project_id` (string, required) — The project ID.

### lokalise_list_keys
List translation keys in a Lokalise project.

**Parameters:**
- `project_id` (string, required) — The project ID.
- `limit` (integer, optional) — Maximum number of keys to return (default 25).
- `page` (integer, optional) — Page number for pagination (default 1).

### lokalise_get_key
Get details of a specific translation key.

**Parameters:**
- `project_id` (string, required) — The project ID.
- `key_id` (integer, required) — The key ID.

### lokalise_create_key
Create a new translation key in a Lokalise project.

**Parameters:**
- `project_id` (string, required) — The project ID.
- `key_name` (string, required) — The key name (e.g. "app.welcome").
- `platforms` (array, optional) — List of platforms (e.g. ["web", "ios", "android"]).
- `translations` (object, optional) — Key-value map of language ISO codes to translation values (e.g. {"en": "Welcome", "fr": "Bienvenue"}).
- `description` (string, optional) — Description for the key.
- `tags` (array, optional) — List of tags to assign to the key.

### lokalise_list_translations
List translations in a Lokalise project.

**Parameters:**
- `project_id` (string, required) — The project ID.
- `limit` (integer, optional) — Maximum number of translations to return (default 25).
- `page` (integer, optional) — Page number for pagination (default 1).

### lokalise_get_current_user
Get the currently authenticated Lokalise user.

**Parameters:** None.

Metadata-Derived Lua Example

local result = app.integrations.lokalise.lokalise_list_projects({
  limit = 1,
  page = 1
})
print(result)

Functions

lokalise_list_projects

List Lokalise projects. Returns project IDs, names, languages, and other metadata. Supports pagination.

Operation
Read read
Full name
lokalise.lokalise_list_projects
ParameterTypeRequiredDescription
limit integer no Maximum number of projects to return (default 25).
page integer no Page number for pagination (default 1).

lokalise_get_project

Get details of a specific Lokalise project. Returns project name, description, languages, statistics, and settings.

Operation
Read read
Full name
lokalise.lokalise_get_project
ParameterTypeRequiredDescription
project_id string yes The project ID.

lokalise_list_keys

List translation keys in a Lokalise project. Returns key IDs, names, platforms, and other metadata. Supports pagination.

Operation
Read read
Full name
lokalise.lokalise_list_keys
ParameterTypeRequiredDescription
project_id string yes The project ID.
limit integer no Maximum number of keys to return (default 25).
page integer no Page number for pagination (default 1).

lokalise_get_key

Get details of a specific translation key in a Lokalise project. Returns key name, platforms, translations, and other metadata.

Operation
Read read
Full name
lokalise.lokalise_get_key
ParameterTypeRequiredDescription
project_id string yes The project ID.
key_id integer yes The key ID.

lokalise_create_key

Create a new translation key in a Lokalise project. The key name and optional translations for each language can be provided.

Operation
Write write
Full name
lokalise.lokalise_create_key
ParameterTypeRequiredDescription
project_id string yes The project ID.
key_name string yes The key name (e.g. "app.welcome").
platforms array no List of platforms (e.g. ["web", "ios", "android"]).
translations object no Key-value map of language ISO codes to translation values (e.g. {"en": "Welcome", "fr": "Bienvenue"}).
description string no Description for the key.
tags array no List of tags to assign to the key.

lokalise_list_translations

List translations in a Lokalise project. Returns translation values, language codes, and key references. Supports pagination.

Operation
Read read
Full name
lokalise.lokalise_list_translations
ParameterTypeRequiredDescription
project_id string yes The project ID.
limit integer no Maximum number of translations to return (default 25).
page integer no Page number for pagination (default 1).

lokalise_get_current_user

Get the currently authenticated Lokalise user. Returns user email, name, and account details.

Operation
Read read
Full name
lokalise.lokalise_get_current_user
ParameterTypeRequiredDescription
No parameters.