> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gravixlayer.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Context

> Retrieve details for a code execution context

```python theme={null}
from gravixlayer import GravixLayer

client = GravixLayer()
runtime = client.runtime.create(template="python-3.14-base-small")
ctx = client.runtime.create_context(runtime.runtime_id)

context = client.runtime.get_context(runtime.runtime_id, ctx.context_id)
print(context.context_id)
print(context.language)  # python
print(context.cwd)       # /workspace

runtime.kill()
```

## Parameters

| Parameter    | Type   | Required | Description        |
| ------------ | ------ | -------- | ------------------ |
| `runtime_id` | string | Yes      | Runtime identifier |
| `context_id` | string | Yes      | Context identifier |

## Response

| Field        | Type   | Description             |
| ------------ | ------ | ----------------------- |
| `context_id` | string | Context identifier      |
| `language`   | string | Language of the context |
| `cwd`        | string | Working directory       |
