# Accessing Runtime Context

In this example, the function provides runtime context like user ID, user email, user name, etc.

### &#x20;Code: /lessons/Access\_Runtime\_Context/AccessRuntimeContext.java

\
**Steps**

1. Create a new function called AccessRuntimeContext.java.
2. Call getUserId(), getIdOfUser(), getEmail(), getFullName() function.
3. Log the response using LogApi.info().
4. Return successful response.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://trillo.gitbook.io/trillo-workbench-lessons/begin-code-lessons/accessing-runtime-context.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
