# GETAGENTTOOL

## Aperçu

L'application de workflow **GETAGENTTOOL** permet d'extraire un outil et ses informations d'une liste d'outils qui peut être fourni par une application comme [OPENAICHAT](/admin-fr/applications-de-workflow/openai/openaichat.md).

## Mode de fonctionnement

* L'application permet d'extraire un outil d'une liste d'outils en fournissant un index.
* L'application permet d'extraire le nom, l'identifiant et les paramètres de l'outil cible.
* 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="false"><thead><tr><th width="235.510009765625" valign="top">Paramètre</th><th width="110.80767822265625" valign="top">Type</th><th width="107.71221923828125" valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><code>TOOLS</code></td><td valign="top">TEXT</td><td valign="top">IN</td><td valign="top"><strong>Requis</strong><br>Le tableau d'outils au format JSON</td></tr><tr><td valign="top"><code>TOOL_INDEX</code></td><td valign="top">NUMERIC</td><td valign="top">IN</td><td valign="top">L'index du tableau pour l'extraction de l'outil; par défaut à <code>0</code></td></tr><tr><td valign="top"><code>TOOL</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td valign="top">L'outil extrait au format JSON</td></tr><tr><td valign="top"><code>TOOL_NAME</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td valign="top">Le nom de l'outil</td></tr><tr><td valign="top"><code>TOOL_ID</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td valign="top">L'identifiant de l'outil</td></tr><tr><td valign="top"><code>TOOL_PARAMETERS</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td valign="top">Les paramètres de l'outil au format JSON</td></tr><tr><td valign="top"><code>proprietéAExtraire</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td valign="top">Propriété à extraire dans les paramètres</td></tr></tbody></table>

## Exemple

#### Entrée

<table><thead><tr><th width="200.21087646484375" valign="top">Paramètre</th><th valign="top">Valeur</th></tr></thead><tbody><tr><td valign="top"><code>TOOLS</code></td><td valign="top"><code>[ { "name":"GET_STOCK_INFORMATION", "id":"call_Vuc2Ga8jP7vUksxG9C0fwpY8", "parameters": { "product_name": "Vis", "serial_number": "V45645" } }, { "name": "GET_STOCK_INFORMATION", "id": "call_nq3SCVUk0FjAHCeqOZGNXpC8", "parameters": { "product_name": "Vis", "serial_number": "V45645" } } ]</code></td></tr><tr><td valign="top"><code>TOOL_INDEX</code></td><td valign="top"><code>1</code></td></tr></tbody></table>

#### Sortie

<table><thead><tr><th width="201.63531494140625" valign="top">Paramètre</th><th valign="top">Valeur</th></tr></thead><tbody><tr><td valign="top"><code>TOOL</code></td><td valign="top"><code>{ "name": "GET_STOCK_INFORMATION", "id": "call_nq3SCVUk0FjAHCeqOZGNXpC8", "parameters": { "product_name": "Vis", "serial_number": "V45645" } }</code></td></tr><tr><td valign="top"><code>TOOL_NAME</code></td><td valign="top"><code>GET_STOCK_INFORMATION</code></td></tr><tr><td valign="top"><code>TOOL_ID</code></td><td valign="top"><code>call_nq3SCVUk0FjAHCeqOZGNXpC8</code></td></tr><tr><td valign="top"><code>TOOL_PARAMETERS</code></td><td valign="top"><code>{ "product_name": "Vis", "serial_number": "V45645" }</code></td></tr><tr><td valign="top"><code>serial_number</code></td><td valign="top"><code>V45645</code></td></tr><tr><td valign="top"> <code>product_name</code></td><td valign="top"><code>Vis</code></td></tr></tbody></table>


---

# 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://docs.workflowgen.com/admin-fr/applications-de-workflow/application-de-workflow-getagenttool.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.
