> For the complete documentation index, see [llms.txt](https://guide.cronuszen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.cronuszen.com/zen-fr/zen-studio/hooks-durl.md).

# Hooks d'URL

Les URL Hooks vous permettent d'ouvrir Zen Studio et de charger automatiquement des scripts dans le compilateur à l'aide d'un lien au protocole personnalisé.

Cette fonctionnalité permet l'intégration directe des scripts GPC hébergés sur le web avec Zen Studio.

### Comment ça fonctionne

***

Les URL Hooks utilisent le `zenstudio://` protocole pour déclencher des actions spécifiques à l'intérieur de Zen Studio.

Une fois le script chargé dans le compilateur, vous pouvez compiler et programmer l'appareil comme d'habitude.

### Commandes URL disponibles

***

#### 1. Ouvrir Zen Studio

```
zenstudio://
```

Lance Zen Studio.

#### 2. Ajouter un script de la bibliothèque GPC au compilateur

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

Charge le script spécifié de la bibliothèque GPC (par ID) directement dans le compilateur.

Remplacez `12345` par l'ID du script souhaité.

#### 3. Ajouter n'importe quel script GPC hébergé sur le web

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

Charge un `.gpc` fichier hébergé publiquement directement dans le compilateur.

Le script doit être accessible via une URL directe.

### Exemple

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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-fr/zen-studio/hooks-durl.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.
