Generate Tool Command
Last updated
Was this helpful?
Last updated
Was this helpful?
This guide documents the generate-tool
command in the Kubiya CLI, which allows you to create new automation tools using AI assistance based on natural language descriptions.
The generate-tool
command enables you to generate automation tools by providing a natural language description. The system uses AI to interpret your description and generate the necessary code files for implementing the tool.
To generate a tool using a natural language description:
The command will create a new session directory and generate the necessary files for implementing the tool based on your description.
The generate-tool
command supports the following options:
--session-id
Session ID for continuing previous generation
--target
, -t
Target directory for generated files (default: current directory)
--debug
Enable debug logging
When you run the generate-tool
command:
A session directory is created (either in the current directory or at the specified target location)
A session ID is generated (or used if provided)
Your natural language description is sent to the Kubiya AI service
Generated file contents are received and saved to the session directory
Debug logs are created if debug mode is enabled
The command provides real-time feedback as it generates your tool:
Generate the initial structure and code for tools to speed up development:
Create example tools to learn about specific technologies or APIs:
Quickly scaffold automation tools for common tasks:
No Files Created
Make your description more specific and detailed
Check your network connection
Verify the Kubiya service is accessible
Permission Issues
Ensure you have write permissions for the target directory
Try using a different target directory with --target
Debugging
Use the --debug
flag to generate detailed logs
Check the debug.log file in the session directory for error details
kubiya tool list
- List available tools
kubiya tool search
- Search for tools by keyword
kubiya tool describe
- Show detailed information about a tool
The generate-tool
command provides an AI-powered approach to creating automation tools. By describing what you want to build in natural language, you can quickly generate functional tool implementations that can be further customized to meet your specific requirements.