# Hook output resolver

The hook output resolver reads parameter values from hook outputs.

### Properties

Here are the properties of the hook output resolver:

| Key          | Required | Type    | Description                                                           |
| ------------ | -------- | ------- | --------------------------------------------------------------------- |
| resolver     | yes      | string  | Resolver name, this must be **hook-output**.                          |
| hook         | yes      | string  | Name of the hook whose output should be read.                         |
| confidential | no       | boolean | Conceal the resolved parameter value from logs, defaults to **false** |
| immutable    | no       | boolean | Mark the parameter as immutable, defaults to **false**                |

### Examples

This stack configuration has a hook named **my-hook**, which runs before stack operations. It is a command hook and will store the output from the shell command to hook outputs from where the subsequent hooks and parameter resolvers can access it.

A hook output resolver reads the output of **my-hook** and sets it as the value of the **Greeting** parameter.

```yaml
parameters:
  Greeting:
    resolver: hook-output
    hook: my-hook
hooks:
  - name: my-hook
    type: cmd
    stage: before
    command: echo 'hello world'
```

##


---

# 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://docs.takomo.io/parameter-resolvers/built-in-parameter-resolvers/hook-output-resolver.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.
