get_qit_dir
Retrieve the QIT configuration directory path to access testing tools for WordPress/WooCommerce plugins.
Instructions
Get the QIT configuration directory path.
⚠️ QIT CLI not detected. QIT CLI not found. Please install it using one of these methods:
Via Composer (recommended): composer require woocommerce/qit-cli --dev
Set QIT_CLI_PATH environment variable: export QIT_CLI_PATH=/path/to/qit
Ensure 'qit' is available in your system PATH
For more information, visit: https://github.com/woocommerce/qit-cli
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/utilities.ts:139-142 (handler)The handler function for the 'get_qit_dir' tool. It executes the QIT CLI command 'qit:dir' using the executeAndFormat utility to retrieve the QIT configuration directory path.handler: async () => { const cmdArgs = ["qit:dir"]; return executeAndFormat(cmdArgs); },
- src/tools/utilities.ts:138-138 (schema)Input schema for 'get_qit_dir' tool, which takes no parameters.inputSchema: z.object({}),
- src/tools/utilities.ts:135-143 (registration)The tool registration object defining 'get_qit_dir' within utilitiesTools, which is later aggregated into allTools.get_qit_dir: { name: "get_qit_dir", description: "Get the QIT configuration directory path.", inputSchema: z.object({}), handler: async () => { const cmdArgs = ["qit:dir"]; return executeAndFormat(cmdArgs); }, },
- src/tools/index.ts:18-18 (registration)Registration of utilitiesTools (containing get_qit_dir) into the allTools aggregate export used by the server....utilitiesTools,