# Step Definitions

Step Definitions are the engine behind the steps you incorporate into your task sequences.  DeployR comes with several in the box step definitions, and there are many others from the community which can be imported to extend the functionality.  &#x20;

To see a list, you can go to the Step definitions blade of DeployR.

<figure><img src="/files/KTQ41WvGnttmZLof4oYh" alt=""><figcaption></figcaption></figure>

Step definitions have several different  Options that can be added into the step to accomidate different scenarios.  For an example, we'll take a look at the "Apply OS" step in a task sequence, and then pull up the definition behind it.

<figure><img src="/files/EscHyZBc48zuhl3RgbUd" alt=""><figcaption></figcaption></figure>

Here we can see that it contains a content item, the WIM file source, a input box for the index number you wish to apply, a content item for the Unattended answer file (optional), and the continuation method drop down box.  Lets look at the definition now:

<figure><img src="/files/p9hnjlXpBBXTw95docco" alt=""><figcaption></figcaption></figure>

Here there are a couple more things that didn't show up in the UI, as you can see their "Hidden" status is set to true.  One is the ScriptName, which is Apply.ps1, and one is the Content Item "DeployR Windows content", which is a content item that contains several scripts used in the task sequence process.

## Custom Step definitions

The ability to create your own step definitions is available too.  This is useful when other teams or administrators will need to be build task sequences, but you want to simplify and control processes in the task sequence.  Instead of having a large PowerShell script with several parameters, you can create your own step definition that will prompt for basic information in the console when they add the step, then do the heavy lifting on the backend.&#x20;


---

# 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://documentation.2pintsoftware.com/deployr/reference/step-definitions.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.
