> For the complete documentation index, see [llms.txt](https://docs.apolo.us/index/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apolo.us/index/apolo-flow-reference/workflow-syntax/actions-syntax/live-actions-contexts.md).

# Actions contexts

This page describes contexts that [actions](/index/apolo-flow-reference/workflow-syntax/actions-syntax.md) can use in expressions for calculating YAML attribute values.

## Action Contexts

| Context name | Description                                                                                                                                                                                                   |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `inputs`     | Contains a mapping of action input values. For more information, see [`inputs` context](#inputs-context).                                                                                                     |
| `state`      | Contains a mapping of state entries of a [stateful action](/index/apolo-flow-reference/workflow-syntax/actions-syntax.md#kind-stateful-actions). For more information, see [`state` context](#state-context). |

### `inputs` context

Contains action inputs described in the [`action.inputs` attribute](/index/apolo-flow-reference/workflow-syntax/live-workflow-syntax.md#jobs-less-than-job-id-greater-than-params) and set using [`jobs.<job-id>.args`](/index/apolo-flow-reference/workflow-syntax/live-workflow-syntax.md#jobs-less-than-job-id-greater-than-args) or [`tasks.args`](/index/apolo-flow-reference/workflow-syntax/batch-workflow-syntax.md#tasks-args).

| Property name         | Type  | Description                           |
| --------------------- | ----- | ------------------------------------- |
| `inputs.<param-name>` | `str` | The value of a specific action input. |

### `state` context

Contains state values generated by the `main` task of a [stateful action](/index/apolo-flow-reference/workflow-syntax/actions-syntax.md#kind-stateful-actions). Refer to the [`save-state` command](/index/apolo-flow-reference/workflow-syntax/batch-workflow-syntax/batch-workflow-commands.md#save-state-command) reference to learn how to generate such values.

| Property name        | Type  | Description                          |
| -------------------- | ----- | ------------------------------------ |
| `state.<entry-name>` | `str` | The value of a specific state entry. |
