n8n_list_variables
Retrieve all environment variables configured in your n8n instance to manage workflow configurations and settings.
Instructions
List all environment variables
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "n8n_list_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:218-223 (handler)The handler implementation in index.ts that calls n8nClient.listVariables().
case 'n8n_list_variables': { const result = await n8nClient.listVariables(); return { content: [{ type: 'text', text: formatResponse(result) }], }; } - src/n8n-client.ts:161-164 (helper)The underlying API client method that performs the GET request to /variables.
async listVariables(): Promise<any> { const response = await this.client.get('/variables'); return response.data; } - src/index.ts:661-668 (registration)Registration of the 'n8n_list_variables' tool in the tool list schema.
{ name: 'n8n_list_variables', description: 'List all environment variables', inputSchema: { type: 'object', properties: {}, }, },