# URL Hooks

URL Hooks allow you to open Zen Studio and automatically load scripts into the compiler using a custom protocol link.

This feature enables direct integration of web-hosted GPC scripts with Zen Studio.

### How It Works

***

URL Hooks use the `zenstudio://` protocol to trigger specific actions inside Zen Studio.

After the script loads into the compiler, you can compile and program the device as usual.

### Available URL Commands

***

#### 1. Open Zen Studio

```
zenstudio://
```

Launches Zen Studio.

#### 2. Add GPC Library Script to Compiler

```
zenstudio://lib/script/?scripts=12345
```

Loads the specified GPC Library script (by ID) directly into the compiler.

Replace `12345` with the desired script ID.

#### 3. Add Any Web-Hosted GPC Script

```
zenstudio://www.example.com/myscript.gpc
```

Loads a publicly hosted `.gpc` file directly into the compiler.

The script must be accessible via direct URL.

### Example

```
zenstudio://www.mywebsite.com/myscript.gpc
```


---

# 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://guide.cronuszen.com/zen-studio/url-hooks.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.
