---
updatedAt: 2025-08-05T09:36:28.000Z
agentTools:
  projectIndex: https://dev.tapcart.com/llms.txt
---

# trigger/gallery

Open a media gallery in the app

#### Fields

### `urls` • \[ *string* ] <span class="required-tag">required</span>

##### An array of image URLs you want to display in the gallery

### `index` • *number*

##### The starting image index of the gallery

***

<br />

```javascript App Studio - React.js
Tapcart.action("trigger/gallery", {
  "urls": [
    "https://example.com/image1.jpg",
    "https://example.com/image2.jpg",
    "https://example.com/image3.jpg"
  ],
	"index": 2
});
```