# GETAGENTTOOLDATA

## Aperçu

L'application de workflow **GETAGENTTOOLDATA** permet d'extraire les informations d'un outil qui peut être fourni par une application comme [OPENAICHAT](https://docs.workflowgen.com/admin-fr/9.1/applications-de-workflow/openai/openaichat).

## Mode de fonctionnement

* L'application permet d'extraire le nom, l'identifiant et les paramètres de l'outil en manipulation.
* Il est aussi possible d'extraire les paramètres un par un en spécifiant le nom du paramètre directement dans le nom.

## Paramètres

<table data-full-width="true"><thead><tr><th>Paramètre</th><th width="168.5">Type</th><th width="107">Direction</th><th>Description</th></tr></thead><tbody><tr><td><code>TOOL_DATA</code></td><td>TEXT</td><td>IN</td><td><strong>Requis</strong><br>L'outil au format JSON à manipuler</td></tr><tr><td><code>TOOL_NAME</code></td><td>TEXT</td><td>OUT</td><td>Le nom de l'outil</td></tr><tr><td><code>TOOL_ID</code></td><td>TEXT</td><td>OUT</td><td>L'identifiant de l'outil</td></tr><tr><td><code>TOOL_PARAMETERS</code></td><td>TEXT</td><td>OUT</td><td>Les paramètres de l'outil au format JSON</td></tr><tr><td><code>proprietéAExtraire</code></td><td>TEXT</td><td>OUT</td><td>Propriété à extraire dans les paramètres</td></tr></tbody></table>

## Exemple

#### Entrée

| Paramètre   | Valeur                                                                                                               |
| ----------- | -------------------------------------------------------------------------------------------------------------------- |
| `TOOL_DATA` | `{ "name":"GET_STOCK_INFORMATION", "id":"call_75hCa1n3NZtlLLx1VGqSXY8C", "parameters": { "serial_number":"v456" } }` |

#### Sortie

| Paramètre         | Valeur                          |
| ----------------- | ------------------------------- |
| `TOOL_NAME`       | `GET_STOCK_INFORMATION`         |
| `TOOL_ID`         | `call_75hCa1n3NZtlLLx1VGqSXY8C` |
| `TOOL_PARAMETERS` | `{ "serial_number":"v456" }`    |
| `serial_number`   | `v456`                          |
