# Buttons

`+[identifier: "Button Label"]{ script that is run when button is clicked }`

### Examples

````

<!-- Run Something in the shell -->
+[echo_something: Run Something!]{ [ echo "I ran this from a rundown button" ] run }  


<!-- Insert something into the Terminal, but don't run it -->
+[insert_something: Insert Something!]{ [ cd ~ ] insert }  


<!-- Run a background process -->
+[run_in_background_1: Run in Background 1!]{ [ open -a "Google Chrome" http://google.com ] sh }

<!-- Run a background process -->
+[run_in_background_2: Git Commit and Push!]{ [ git add .' git commit; git push origin master ] sh }


<!-- Close the Fig window -->
+[close: Close Fig Window!]{ close } 


<!-- Run code blocks in the Terminal -->
```bash
echo "I ran this from a code block"
```

````

![](/files/-MDDfqkanOppqiiVF9Lp)


---

# 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://fig.gitbook.io/fig/interactive-runbooks-2/components/buttons.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.
