current_context
Identify the active project slot and service names resolved from the current working directory, without returning port numbers.
Instructions
The project and slot resolved from the working directory, with the service names. Returns no port numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | directory to resolve the project from; defaults to where the server was started |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | ||
| project | Yes | ||
| unbound | No | true when this working copy has no slot of its own and the default slot belongs to another working copy; call slot_new before using ports | |
| services | Yes | ||
| warnings | No | notes about how the slot was resolved, e.g. a stale PORT_KEEPER_SLOT in the environment | |
| infra_from | No | ||
| slot_exists | Yes | ||
| slot_source | Yes | how the slot was chosen: explicit, env, root or default |