KosmoKrator

data

Celestial Lua API for KosmoKrator Agents

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

9 functions 9 read 0 write No credentials auth

Lua Namespace

Agents call this integration through app.integrations.celestial.*. Use lua_read_doc("integrations.celestial") 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.

Moon phase report — Lua API Reference

celestial_lunar_eclipse

Get lunar eclipse data for a specific date — eclipse type, magnitude, gamma, contact times (P1-P4, U1-U4), and semi-durations..

Parameters

NameTypeRequiredDescription
datestringyesISO date (e.g.

Example

local result = app.integrations.celestial.celestial_lunar_eclipse({
  date = ""
})

celestial_moon_info

Get moon position, illumination, and visibility from a specific location..

Parameters

NameTypeRequiredDescription
latitudenumberyesObserver latitude (-90 to 90).
longitudenumberyesObserver longitude (-180 to 180).
datestringnoISO date or datetime (e.g.
timezonestringnoTimezone for display (e.g.

Example

local result = app.integrations.celestial.celestial_moon_info({
  latitude = 0
  longitude = 0
  date = ""
})

celestial_moon_phase

Get current moon phase, illumination percentage, age, zodiac sign, and dates of next new/full moon..

Parameters

NameTypeRequiredDescription
datestringnoISO date or datetime (e.g.
timezonestringnoTimezone for display (e.g.

Example

local result = app.integrations.celestial.celestial_moon_phase({
  date = ""
  timezone = ""
})

celestial_night_sky

Get what.

Parameters

NameTypeRequiredDescription
latitudenumberyesObserver latitude (-90 to 90).
longitudenumberyesObserver longitude (-180 to 180).
timezonestringnoTimezone for display (e.g.

Example

local result = app.integrations.celestial.celestial_night_sky({
  latitude = 0
  longitude = 0
  timezone = ""
})

celestial_planet_position

Get planet altitude/azimuth, zodiac position, and rise/set times. Set planet to.

Parameters

NameTypeRequiredDescription
latitudenumberyesObserver latitude (-90 to 90).
longitudenumberyesObserver longitude (-180 to 180).
planetstringnoPlanet name:
datestringnoISO date or datetime (e.g.
timezonestringnoTimezone for display (e.g.

Example

local result = app.integrations.celestial.celestial_planet_position({
  latitude = 0
  longitude = 0
  planet = ""
})

celestial_solar_eclipse

Get solar eclipse data for a specific date and location — eclipse type, obscuration, contacts, and magnitude..

Parameters

NameTypeRequiredDescription
datestringyesISO date (e.g.
latitudenumberyesObserver latitude (-90 to 90).
longitudenumberyesObserver longitude (-180 to 180).

Example

local result = app.integrations.celestial.celestial_solar_eclipse({
  date = ""
  latitude = 0
  longitude = 0
})

celestial_sun_info

Get sunrise/sunset times, solar altitude/azimuth, twilight phase, day length, and zodiac position for a location..

Parameters

NameTypeRequiredDescription
latitudenumberyesObserver latitude (-90 to 90).
longitudenumberyesObserver longitude (-180 to 180).
datestringnoISO date or datetime (e.g.
timezonestringnoTimezone for display (e.g.

Example

local result = app.integrations.celestial.celestial_sun_info({
  latitude = 0
  longitude = 0
  date = ""
})

celestial_time_info

Get astronomical time data — Julian Day, sidereal time (GMST/GAST), and equation of time..

Parameters

NameTypeRequiredDescription
datestringnoISO date or datetime (e.g.

Example

local result = app.integrations.celestial.celestial_time_info({
  date = ""
})

celestial_zodiac_report

Get all celestial bodies mapped to zodiac signs with alignments for a given date..

Parameters

NameTypeRequiredDescription
datestringnoISO date or datetime (e.g.

Example

local result = app.integrations.celestial.celestial_zodiac_report({
  date = ""
})
Raw agent markdown
# Moon phase report — Lua API Reference

## celestial_lunar_eclipse

Get lunar eclipse data for a specific date — eclipse type, magnitude, gamma, contact times (P1-P4, U1-U4), and semi-durations..

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `date` | string | yes | ISO date (e.g.  |

### Example

```lua
local result = app.integrations.celestial.celestial_lunar_eclipse({
  date = ""
})
```

## celestial_moon_info

Get moon position, illumination, and visibility from a specific location..

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `latitude` | number | yes | Observer latitude (-90 to 90). |
| `longitude` | number | yes | Observer longitude (-180 to 180). |
| `date` | string | no | ISO date or datetime (e.g.  |
| `timezone` | string | no | Timezone for display (e.g.  |

### Example

```lua
local result = app.integrations.celestial.celestial_moon_info({
  latitude = 0
  longitude = 0
  date = ""
})
```

## celestial_moon_phase

Get current moon phase, illumination percentage, age, zodiac sign, and dates of next new/full moon..

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `date` | string | no | ISO date or datetime (e.g.  |
| `timezone` | string | no | Timezone for display (e.g.  |

### Example

```lua
local result = app.integrations.celestial.celestial_moon_phase({
  date = ""
  timezone = ""
})
```

## celestial_night_sky

Get what\.

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `latitude` | number | yes | Observer latitude (-90 to 90). |
| `longitude` | number | yes | Observer longitude (-180 to 180). |
| `timezone` | string | no | Timezone for display (e.g.  |

### Example

```lua
local result = app.integrations.celestial.celestial_night_sky({
  latitude = 0
  longitude = 0
  timezone = ""
})
```

## celestial_planet_position

Get planet altitude/azimuth, zodiac position, and rise/set times. Set planet to.

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `latitude` | number | yes | Observer latitude (-90 to 90). |
| `longitude` | number | yes | Observer longitude (-180 to 180). |
| `planet` | string | no | Planet name:  |
| `date` | string | no | ISO date or datetime (e.g.  |
| `timezone` | string | no | Timezone for display (e.g.  |

### Example

```lua
local result = app.integrations.celestial.celestial_planet_position({
  latitude = 0
  longitude = 0
  planet = ""
})
```

## celestial_solar_eclipse

Get solar eclipse data for a specific date and location — eclipse type, obscuration, contacts, and magnitude..

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `date` | string | yes | ISO date (e.g.  |
| `latitude` | number | yes | Observer latitude (-90 to 90). |
| `longitude` | number | yes | Observer longitude (-180 to 180). |

### Example

```lua
local result = app.integrations.celestial.celestial_solar_eclipse({
  date = ""
  latitude = 0
  longitude = 0
})
```

## celestial_sun_info

Get sunrise/sunset times, solar altitude/azimuth, twilight phase, day length, and zodiac position for a location..

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `latitude` | number | yes | Observer latitude (-90 to 90). |
| `longitude` | number | yes | Observer longitude (-180 to 180). |
| `date` | string | no | ISO date or datetime (e.g.  |
| `timezone` | string | no | Timezone for display (e.g.  |

### Example

```lua
local result = app.integrations.celestial.celestial_sun_info({
  latitude = 0
  longitude = 0
  date = ""
})
```

## celestial_time_info

Get astronomical time data — Julian Day, sidereal time (GMST/GAST), and equation of time..

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `date` | string | no | ISO date or datetime (e.g.  |

### Example

```lua
local result = app.integrations.celestial.celestial_time_info({
  date = ""
})
```

## celestial_zodiac_report

Get all celestial bodies mapped to zodiac signs with alignments for a given date..

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `date` | string | no | ISO date or datetime (e.g.  |

### Example

```lua
local result = app.integrations.celestial.celestial_zodiac_report({
  date = ""
})
```

Metadata-Derived Lua Example

local result = app.integrations.celestial.celestial_moon_phase({
  date = "example_date",
  timezone = "example_timezone"
})
print(result)

Functions

celestial_moon_phase

Get current moon phase, illumination percentage, age, zodiac sign, and dates of next new/full moon.

Operation
Read read
Full name
celestial.celestial_moon_phase
ParameterTypeRequiredDescription
date string no ISO date or datetime (e.g. '2024-06-15' or '2024-06-15 22:00:00'). Defaults to now.
timezone string no Timezone for display (e.g. 'Europe/Amsterdam'). Defaults to org timezone.

celestial_sun_info

Get sunrise/sunset times, solar altitude/azimuth, twilight phase, day length, and zodiac position for a location.

Operation
Read read
Full name
celestial.celestial_sun_info
ParameterTypeRequiredDescription
latitude number yes Observer latitude (-90 to 90).
longitude number yes Observer longitude (-180 to 180).
date string no ISO date or datetime (e.g. '2024-06-15'). Defaults to now.
timezone string no Timezone for display (e.g. 'Europe/Amsterdam'). Defaults to org timezone.

celestial_moon_info

Get moon position, illumination, and visibility from a specific location.

Operation
Read read
Full name
celestial.celestial_moon_info
ParameterTypeRequiredDescription
latitude number yes Observer latitude (-90 to 90).
longitude number yes Observer longitude (-180 to 180).
date string no ISO date or datetime (e.g. '2024-06-15'). Defaults to now.
timezone string no Timezone for display (e.g. 'Europe/Amsterdam'). Defaults to org timezone.

celestial_planet_position

Get planet altitude/azimuth, zodiac position, and rise/set times. Set planet to "all" for an overview of all planets.

Operation
Read read
Full name
celestial.celestial_planet_position
ParameterTypeRequiredDescription
latitude number yes Observer latitude (-90 to 90).
longitude number yes Observer longitude (-180 to 180).
planet string no Planet name: 'mercury', 'venus', 'mars', 'jupiter', 'saturn', 'uranus', 'neptune', or 'all' (default).
date string no ISO date or datetime (e.g. '2024-06-15'). Defaults to now.
timezone string no Timezone for display (e.g. 'Europe/Amsterdam'). Defaults to org timezone.

celestial_solar_eclipse

Get solar eclipse data for a specific date and location — eclipse type, obscuration, contacts, and magnitude.

Operation
Read read
Full name
celestial.celestial_solar_eclipse
ParameterTypeRequiredDescription
date string yes ISO date (e.g. '2024-04-08'). Defaults to today.
latitude number yes Observer latitude (-90 to 90).
longitude number yes Observer longitude (-180 to 180).

celestial_lunar_eclipse

Get lunar eclipse data for a specific date — eclipse type, magnitude, gamma, contact times (P1-P4, U1-U4), and semi-durations.

Operation
Read read
Full name
celestial.celestial_lunar_eclipse
ParameterTypeRequiredDescription
date string yes ISO date (e.g. '2024-09-18'). Defaults to today.

celestial_night_sky

Get what's visible in the night sky right now: sun/moon/planet positions, darkness level, and stargazing quality for a location.

Operation
Read read
Full name
celestial.celestial_night_sky
ParameterTypeRequiredDescription
latitude number yes Observer latitude (-90 to 90).
longitude number yes Observer longitude (-180 to 180).
timezone string no Timezone for display (e.g. 'Europe/Amsterdam'). Defaults to org timezone.

celestial_zodiac_report

Get all celestial bodies mapped to zodiac signs with alignments for a given date.

Operation
Read read
Full name
celestial.celestial_zodiac_report
ParameterTypeRequiredDescription
date string no ISO date or datetime (e.g. '2024-06-15'). Defaults to now.

celestial_time_info

Get astronomical time data — Julian Day, sidereal time (GMST/GAST), and equation of time.

Operation
Read read
Full name
celestial.celestial_time_info
ParameterTypeRequiredDescription
date string no ISO date or datetime (e.g. '2024-06-15'). Defaults to now.