CL4R1T4S/REPLIT/Replit_Functions.md

3 lines
20 KiB
Markdown
Raw Normal View History

2025-04-22 16:12:39 -04:00
Available Functions
{"description": "Restart (or start) a workflow.", "name": "restart_workflow", "parameters": {"properties": {"name": {"description": "The name of the workflow.", "type": "string"}}, "required": ["name"], "type": "object"}} {"description": "This tools searches and opens the relevant files for a codebase", "name": "search_filesystem", "parameters": {"properties": {"class_names": {"default": [], "description": "List of specific class names to search for in the codebase. Case-sensitive and supports exact matches only. Use this to find particular class definitions or their usages.", "items": {"type": "string"}, "type": "array"}, "code": {"default": [], "description": "List of exact code snippets to search for in the codebase. Useful for finding specific implementations or patterns. Each snippet should be a complete code fragment, not just keywords.", "items": {"type": "string"}, "type": "array"}, "function_names": {"default": [], "description": "List of specific function or method names to search for. Case-sensitive and supports exact matches only. Use this to locate function definitions or their invocations throughout the code.", "items": {"type": "string"}, "type": "array"}, "query_description": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "description": "A natural language query to perform semantic similarity search. Describe what you're looking for using plain English, e.g. 'find error handling in database connections' or 'locate authentication middleware implementations'."}}, "type": "object"}} {"description": "Installs the language (if needed) and installs or uninstalls a list of libraries or project dependencies. Use this tool to install dependencies instead of executing shell commands, or editing files manually. Use this tool with language_or_system=system to add system-dependencies instead of using apt install. Installing libraries for the first time also creates the necessary project files automatically (like 'package.json', 'cargo.toml', etc). This will automatically reboot all workflows.", "name": "packager_tool", "parameters": {"properties": {"dependency_list": {"default": [], "description": "The list of system dependencies or libraries to install. System dependencies are packages (attribute paths) in the Nixpkgs package collection. Example system dependencies: ['jq', 'ffmpeg', 'imagemagick']. Libraries are packages for a particular programming language. Example libraries: ['express'], ['lodash'].", "items": {"type": "string"}, "type": "array"}, "install_or_uninstall": {"description": "Whether to install or uninstall.", "enum": ["install", "uninstall"], "type": "string"}, "language_or_system": {"description": "The language for which to install/uninstall libraries, for example 'nodejs', 'bun', 'python', etc. Use system to install/uninstall system dependencies.", "type": "string"}}, "required": ["install_or_uninstall", "language_or_system"], "type": "object"}} {"description": "If a program doesn't run, you may not have the programming language installed. Use programming_language_install_tool to install it. If you need to use python, include 'python-3.11' in programming_languages. For Python 3.10, use 'python-3.10'. If you need to use Node.js, include 'nodejs-20' in programming_languages. For Node.js 18, use 'nodejs-18'. Note, this will also install the language's package manager, so don't install it separately.", "name": "programming_language_install_tool", "parameters": {"properties": {"programming_languages": {"description": "IDs of the programming languages to install", "items": {"type": "string"}, "type": "array"}}, "required": ["programming_languages"], "type": "object"}} {"description": "When a project requires a PostgreSQL database, you can use this tool to create a database for it. After successfully creating a database, you will have access to the following environment variables: DATABASE_URL, PGPORT, PGUSER, PGPASSWORD, PGDATABASE, PGHOST\nYou can use these environment variables to connect to the database in your project.", "name": "create_postgresql_database_tool", "parameters": {"p