# Get action: API object

The API object for the `get_action` method includes:

`api.data`

This is data that users can use to store information between different get\_action calls. This can be helpful for games where history matters. For example, in a previous state, the bot may have seen the opponent in location (3, 2) but is no longer visible in this current state, one could store this coordinate in `api.data.previous = (3, 2)`

`api.log`

Use this function to log strings for easier debugging. Example usage: `api.log("Debugging")`


---

# 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://doc.botpot.ai/fundamentals/get-action/get-action-api-object.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.
