> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nika.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# tools

> Contract, placement, related fields and source examples for this Nika YAML field.

[Language reference](https://docs.nika.sh/reference/language/overview.md) / `tools`

## Meaning and placement

### → permits

Allowed nika:/mcp: tool ids · globs ok.

| Property | Declaration |
| - | - |
| Requirement | Optional in this object |
| Schema location | `/properties/permits/properties/tools` |
| type | `"array"` |

**In the same object:** [env](https://docs.nika.sh/reference/language/words/env.md) · [exec](https://docs.nika.sh/reference/language/words/exec.md) · [fs](https://docs.nika.sh/reference/language/words/fs.md) · [net](https://docs.nika.sh/reference/language/words/net.md)

[Schema source (use the pointer above)](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/schemas/workflow.schema.json)

### agent

Whitelist · DEFAULT-DENY (no tools if absent) · gitignore-style globs · `!` negation.

| Property | Declaration |
| - | - |
| Requirement | Optional in this object |
| Schema location | `/$defs/agent/properties/tools` |
| type | `"array"` |

**In the same object:** [images](https://docs.nika.sh/reference/language/words/images.md) · [max\_tokens\_total](https://docs.nika.sh/reference/language/words/max_tokens_total.md) · [max\_turns](https://docs.nika.sh/reference/language/words/max_turns.md) · [model](https://docs.nika.sh/reference/language/words/model.md) · [prompt](https://docs.nika.sh/reference/language/words/prompt.md) · [schema](https://docs.nika.sh/reference/language/words/schema.md) · [skills](https://docs.nika.sh/reference/language/words/skills.md) · [system](https://docs.nika.sh/reference/language/words/system.md) · [temperature](https://docs.nika.sh/reference/language/words/temperature.md)

[Schema source (use the pointer above)](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/schemas/workflow.schema.json)

## In a source template

Excerpt from `templates/agent-loop.nika`, source lines 45–54. This is a fragment, not a runnable workflow.

```yaml illustration theme={"system"}
permits:                            # the blast radius · default-deny once present
  # Exactly what the body invokes: `nika:assert` (the confirm task) plus the
  # two the agent may call. No `fs:` — see the note on `tools:` below.
  tools: ["nika:assert", "nika:done", "nika:jq"]

tasks:
  plan:
    infer:
      prompt: "Break '${{ inputs.goal }}' into at most 4 concrete steps."   # SLOT
      # SLOT: the spend ceiling for the planning call. Size it for the SEAT,
```

### Templates containing this field

| Template | Source |
| - | - |
| `templates/agent-loop.nika` | [Line 48](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/agent-loop.nika#L48) |
| `templates/aggregate-by-key.nika` | [Line 21](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/aggregate-by-key.nika#L21) |
| `templates/api-upload-and-create.nika` | [Line 52](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/api-upload-and-create.nika#L52) |
| `templates/bounded-batch.nika` | [Line 20](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/bounded-batch.nika#L20) |
| `templates/chain.nika` | [Line 37](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/chain.nika#L37) |
| `templates/classify-and-route.nika` | [Line 73](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/classify-and-route.nika#L73) |
| `templates/corpus-qa.nika` | [Line 28](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/corpus-qa.nika#L28) |
| `templates/deduplicate-records.nika` | [Line 21](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/deduplicate-records.nika#L21) |
| `templates/docker-report.nika` | [Line 38](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/docker-report.nika#L38) |
| `templates/document-to-fields.nika` | [Line 34](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/document-to-fields.nika#L34) |
| `templates/etl-state.nika` | [Line 55](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/etl-state.nika#L55) |
| `templates/fanout.nika` | [Line 67](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/fanout.nika#L67) |
| `templates/gate-and-act.nika` | [Line 33](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/gate-and-act.nika#L33) |
| `templates/human-gated-ship.nika` | [Line 62](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/human-gated-ship.nika#L62) |
| `templates/media-asset-pack.nika` | [Line 38](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/media-asset-pack.nika#L38) |
| `templates/parallel-review.nika` | [Line 47](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/parallel-review.nika#L47) |
| `templates/project-public-fields.nika` | [Line 22](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/project-public-fields.nika#L22) |
| `templates/recover-optional-file.nika` | [Line 16](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/recover-optional-file.nika#L16) |
| `templates/snapshot-diff.nika` | [Line 20](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/snapshot-diff.nika#L20) |
| `templates/validate-records.nika` | [Line 19](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/validate-records.nika#L19) |
| `templates/website-brief.nika` | [Line 39](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/website-brief.nika#L39) |

These are literal key occurrences in the source files, not an execution or conformance claim. [How to instantiate a template](https://docs.nika.sh/guides/templates.md).

## Contract and implementation

This page projects the named specification revision. Check [released engine status](https://docs.nika.sh/reference/status.md) and [the validation workflow](https://docs.nika.sh/guides/agent-authoring.md) before running a file. An optional field is not evidence that every engine supports every value.

Canonical identity: `language:word:tools`. Spec revision: [`4e259e5b8012`](https://github.com/supernovae-st/nika-spec/tree/4e259e5b8012fcdf92f094142a52dfef24099b85).

[How documentation stays connected](https://docs.nika.sh/reference/knowledge-system.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.