> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/technical-reference/connections-and-tool-execution/action-inputs-outputs-and-validation.md).

# Action Inputs, Outputs, and Validation

An action performs a specific operation with defined inputs and outputs. Map those fields to pass data between the workflow and the provider.

{% embed url="<https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2Fcfne8J8aJmmy82AmZRxj%2Faction-inputs-outputs-and-validation.mp4?alt=media&token=0b6fd45d-775c-4e7e-9813-1fbf93f80fdb>" %}
A short walkthrough of action inputs, outputs, and validation.
{% endembed %}

## Before you begin

An available action and any required connection.

## Key concepts

| Term          | Definition                                                                                                                                                  |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Action        | One operation, such as finding a record or creating a file. Map its required inputs and inspect its result before continuing.                               |
| Tool argument | A value supplied when calling a tool. It must match that tool’s exposed input schema and refer to accessible resources.                                     |
| Schema        | A definition of fields, types, required values, and supported constraints. Use it to validate the shape of data; it does not establish factual correctness. |
| Tool result   | The returned data or error from a tool operation. The agent should base its report on this result rather than assuming the call succeeded.                  |

## Configuration options

| Option         | Purpose                                                                       | Behavior                                                                       |
| -------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| Output mapping | Selection of a node’s returned field for another step or the final interface. | A successful intermediate result is not automatically visible to the end user. |

## Configure an action

1. Read the action’s required fields and choose the connection.
2. Map values of the expected types. Use IDs where the action requests IDs, rather than display names.
3. Run the action and inspect its returned fields before mapping the next step.

The action receives valid inputs and its result is available to the workflow.

## Behavior and limitations

A valid input shape does not guarantee that a record exists or that the account can access it. Required fields, allowed values, and output structures differ by action. An empty search result can be a successful response. Keep provider errors separate from missing workflow variables.

## Related resources

[Connection Ownership, Sharing, and Permissions](https://docs.stackai.com/technical-reference/connections-and-tool-execution/connection-ownership-sharing-and-permissions.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/technical-reference/connections-and-tool-execution/action-inputs-outputs-and-validation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
