# Emoji Paster

![](/files/-Mdrd6q7PKyz1zprpFuM)

This command illustrates how to return an interactive [List view](/reference/command-response-view-list.md). In this case, we visualize emojis and their names. As you type, the command matches the emoji name. When you hit **Enter**, the command pastes the selected emoji in the active app.

In this example, you'll also notice that you can use an emoji as a custom icon for an [Option](/reference/command-response-view-list.md#listoption).

```javascript
/**
 * A command that shows a selection of emojis and pastes
 * the selected emoji on pressing Enter.
 */
const response = {
  view: {
    type: "list",
    options: [
      {
        title: "Heart",
        action: {
          type: "paste",
          value: "❤️",
        },
        icon: "❤️",
      },
      {
        title: "Star",
        action: {
          type: "paste",
          value: "⭐️",
        },
        icon: "⭐️",
      },
      {
        title: "Lightning",
        action: {
          type: "paste",
          value: "️⚡️",
        },
        icon: "⚡️",
      },
    ],
  },
};

console.log(JSON.stringify(response));
```

[See on Github](https://github.com/slapdash/platform/tree/main/tutorials/emoji-paster)


---

# 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://platform.slapdash.com/command-tutorials/emoji-paster.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.
