---
description: Provide contextual information to your agent
---

# Context

You can just provide context without an accompanying message to your agent using `carter.context()`, which calls the carter /context endpoint.

Please see the [carter docs](https://docs.carterlabs.ai/api/context-new) for a rundown of when and when not to use it.



```javascript
//carter agent already created

const response = carter.context('The player is wearing a blue t-shirt')
console.log(response.success)

```

`context()` simply returns the carter data to you, an object with a success and error property.

```
{ success: boolean, error: string }
```

It does **not** create or store an interaction object.
