# Prompt Share Dialogue

**JavaScript Function**

```
twinr_share_page()
```

#### Function Variants & Usage

**1. Share current screen URL**

```javascript
twinr_share_page();
```

✅ This will share the current webview page URL automatically.

***

**2. Share provided URL with title**

```javascript
twinr_share_page("https://twinr.dev", "Twinr");
```

✅ This will share the provided URL with a title ("Twinr") to give context in the sharing platform.

***

**3. Share provided URL without title**

```javascript
twinr_share_page("https://twinr.dev");
```

✅ This will simply share the provided URL without any additional text/title.

| Parameter | Type   | Required | Description                                               |
| --------- | ------ | -------- | --------------------------------------------------------- |
| `url`     | String | Optional | The link you want the user to share.                      |
| `title`   | String | Optional | A short title or message that appears along with the URL. |

#### Example Use Case

```javascript
twinr_share_page("https://myapp.com/invite", "Join me on this awesome app!");
```

➡️ Opens the native share sheet with the message and link prefilled.

#### Use Cases

* Share **invite links**
* Promote **blog posts** or **products**
* Let users easily share **content** or **deals**


---

# 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://help.twinr.dev/js-bridge/prompt-share-dialogue.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.
