Skip to main content

MCP Tool

Currently includes 39 tools.

Source data: tools.json


Tools Overview

NameDescription
loginLogs in to the CloudBase environment and selects the environment to use
logoutLogs out of the CloudBase environment
envQueryQueries CloudBase environment related information, supports querying environment list, current environment information, auth domains, and static website hosting configuration. (Original tool names: listEnvs/getEnvInfo/getEnvAuthDomains/getWebsiteConfig; for compatibility with old AI rules, these names can still be used.)
envDomainManagementManages the auth domains of the CloudBase environment, supports add and delete operations. (Original tool names: createEnvDomain/deleteEnvDomain; for compatibility with old AI rules, these names can still be used.)
createCollectionManages CloudBase database collections: creates by default. Can specify update via action.
collectionQueryQuery operations for database collections, supports existence checking, detail viewing, list querying; and supports index listing and checking. (Compatible with old names)
updateCollectionUpdates CloudBase database collection configuration (create or delete indexes)
checkIndexExistsCheck index existence
insertDocumentsInserts one or multiple documents into the CloudBase database collection (supports array of objects)
queryDocumentsQueries documents in the CloudBase database collection (supports object parameters)
updateDocumentsUpdates documents in the CloudBase database collection (supports object parameters)
deleteDocumentsDeletes documents in the CloudBase database collection (supports object parameters)
manageDataModelData model query tool, supports querying and listing data models (read-only operations). The list operation returns basic information (without Schema), the get operation returns detailed information (with simplified Schema, including field list, format, relationships, etc.), and the docs operation generates SDK usage documentation.
modifyDataModelCreates or updates data models based on Mermaid classDiagram. Supports creating new models and updating existing model structures. Features built-in asynchronous task monitoring with automatic polling until completion or timeout.
getFunctionListObtains cloud function list or individual function details, with operation type distinguished by the action parameter
createFunctionCreate cloud function
updateFunctionCodeUpdate function code
updateFunctionConfigUpdate cloud function configuration
invokeFunctionInvoke cloud function
getFunctionLogsGet basic cloud function log information (LogList). To obtain log details, call the getFunctionLogDetail tool with the RequestId. This API is based on the getFunctionLogsV2 implementation in manger-node 4.4.0+ and does not return specific log content. offset+limit must not exceed 10000, and startTime/endTime interval must not exceed one day.
getFunctionLogDetailQuery log details based on the RequestId returned by getFunctionLogs. Parameters: startTime, endTime, requestId; returns log content (LogJson, etc.). Only supported on manger-node 4.4.0+.
manageFunctionTriggersManage cloud function triggers, with operation type distinguished by the action parameter
uploadFilesUpload files to Static Hosting
deleteFilesDelete files or folders in Static Hosting
findFilesSearch files in Static Hosting
domainManagementUnified domain management tool that supports binding, unbinding, querying, and modifying domain configurations
queryStorageQueries cloud storage information, supporting read-only operations such as listing directory files, obtaining file details, and generating temporary download URLs. Returned file information includes file name, size, last modified time, download URL, etc.
manageStorageManages cloud storage files, supporting operations such as uploading files/directories, downloading files/directories, and deleting files/directories. Delete operations require setting force=true for confirmation to prevent accidental deletion of important files.
downloadTemplateAutomatically downloads and deploys CloudBase project templates.<br/>Supported templates:<br/>- react: React + CloudBase full-stack application template<br/>- vue: Vue + CloudBase full-stack application template<br/>- miniprogram: WeChat Mini Program + Cloud Development template<br/>- uniapp: UniApp + CloudBase cross-platform application template<br/>- rules: Contains only AI editor configuration files (including configurations for all mainstream editors such as Cursor, WindSurf, CodeBuddy, etc.), suitable for supplementing AI editor configurations in existing projects<br/>Supported IDE types:<br/>- all: Downloads all IDE configurations (default)<br/>- cursor: Cursor AI editor<br/>- windsurf: WindSurf AI editor<br/>- codebuddy: CodeBuddy AI editor<br/>- claude-code: Claude Code AI editor<br/>- cline: Cline AI editor<br/>- gemini-cli: Gemini CLI<br/>- opencode: OpenCode AI editor<br/>- qwen-code: Tongyi Lingma<br/>- baidu-comate: Baidu Comate<br/>- openai-codex-cli: OpenAI Codex CLI<br/>- augment-code: Augment Code<br/>- github-copilot: GitHub Copilot<br/>- roocode: RooCode AI editor<br/>- tongyi-lingma: Tongyi Lingma<br/>- trae: Trae AI editor<br/>- vscode: Visual Studio Code<br/>Special notes:<br/>- The rules template automatically includes the current mcp version information (version: 1.8.41) to facilitate subsequent maintenance and version tracking<br/>- When downloading the rules template, if a README.md file already exists in the project, the system will automatically protect this file from being overwritten (unless overwrite=true is set)
interactiveDialogUnified interactive dialog tool supporting requirement clarification and task confirmation. When needing to confirm next steps with users, call this tool's clarify method; for sensitive operations requiring user confirmation, call this tool's confirm method.
searchWebPerforms information retrieval using web search, such as querying the latest news, articles, stock prices, weather, etc. Supports natural language queries and can also directly enter URLs to retrieve webpage content.
searchKnowledgeBaseCloud Development knowledge base intelligent search tool supporting vector-based queries for Cloud Development and Cloud Function knowledge
queryCloudRunQueries Cloud Run services information, supporting operations such as obtaining service lists, querying service details, and acquiring available template lists. Returned service information includes service name, status, access type, configuration details, etc.
manageCloudRunManages Cloud Run services, supporting the following operations in development workflow sequence: initialize projects (starting from templates, template lists can be queried via queryCloudRun), download service code, local execution (function-based services only), deploy code, and delete services. Deployment supports configurable parameters such as CPU, memory, instance count, and access type. Delete operations require confirmation; setting force=true is recommended.
createFunctionHTTPAccessCreate HTTP access for cloud function
downloadRemoteFileDownloads remote files to a specified relative path under the project root directory. For example: resource images such as the Mini Program's Tabbar must be in **png** format and can be chosen from resources like Unsplash, wikimedia (generally choose the 500 size), Pexels, Apple's official UI, etc. to download.
readSecurityRuleReads security rules and permission types for specified resources (database collections, cloud functions, buckets).<br/>Parameter description:<br/>- resourceType: Resource type (database/function/storage)<br/>- resourceId: Resource unique identifier (collection name/function name/bucket name)
writeSecurityRuleSets security rules for specified resources (database collections, cloud functions, buckets).<br/>Parameter description:<br/>- resourceType: Resource type (database/function/storage)<br/>- resourceId: Resource unique identifier (collection name/function name/bucket name)<br/>- aclTag: Permission type (READONLY/PRIVATE/ADMINWRITE/ADMINONLY/CUSTOM)<br/>- rule: Custom security rule content, required only when aclTag is CUSTOM
activateInviteCodeCloudBase AI programming incentive program, activating user incentives through invitation codes.

Detailed Specifications

login

Log in to the CloudBase environment and select the environment to use

Parameters

Parameter NameTypeRequiredDescription
forceUpdatebooleanWhether to forcefully reselect the environment

logout

Exit the CloudBase environment

Parameters

Parameter NameTypeRequiredDescription
confirmstringRequiredConfirmation action. Default value: 'yes'. Allowed value: const "yes"

envQuery

Querying CloudBase environment related information, supports querying environment list, current environment information, auth domains, and static website hosting configuration. (Original tool names: listEnvs/getEnvInfo/getEnvAuthDomains/getWebsiteConfig; for compatibility with old AI rules, these names can still be used.)

Parameters

Parameter NameTypeRequiredDescription
actionstringRequiredQuery type: list=Environment list, info=Current environment information, domains=Security domain list, hosting=Static website hosting configuration. Allowed values: "list", "info", "domains", "hosting"

envDomainManagement

Managing the auth domains of the CloudBase environment, supports add and delete operations. (Original tool names: createEnvDomain/deleteEnvDomain; for compatibility with old AI rules, these names can still be used.)

Parameters

Parameter NameTypeRequiredDescription
actionstringRequiredOperation type: create=Add domain, delete=Delete domain. Allowed values: "create", "delete"
domainsarray of stringRequiredSecurity domain array

createCollection

Manages CloudBase database collections: creates by default. Can specify update via action.

Parameters

Parameter NameTypeRequiredDescription
actionstringOptionalOperation type: create=Create (default), update=Update collection configuration. Allowed values: "create", "update"
collectionNamestringRequiredCloudBase database collection name
optionsobjectOptionalUpdate options (used when action=update)
options.CreateIndexesarray of object
options.CreateIndexes[].IndexNamestringRequired
options.CreateIndexes[].MgoKeySchemaobjectRequired
options.CreateIndexes[].MgoKeySchema.MgoIsUniquebooleanRequired
options.CreateIndexes[].MgoKeySchema.MgoIndexKeysarray of objectRequired
options.CreateIndexes[].MgoKeySchema.MgoIndexKeys[].NamestringRequired
options.CreateIndexes[].MgoKeySchema.MgoIndexKeys[].DirectionstringRequired
options.DropIndexesarray of object
options.DropIndexes[].IndexNamestringRequired

collectionQuery

Query operations for database collections, supporting existence checking, detail viewing, and list querying; also supports index listing and checking. (Compatible with old names)

Parameters

Parameter NameTypeRequiredDescription
actionstringRequiredOperation type: check=Check existence, describe=View details, list=List query, index_list=Index list, index_check=Check index existence. Allowed values: "check", "describe", "list", "index_list", "index_check"
collectionNamestringCollection name (required for check, describe, index_list, index_check operations)
indexNamestringIndex name (required for index_check operation)
limitnumberResult limit (optional for list operations)
offsetnumberOffset (optional for list operations)

updateCollection

Update CloudBase database collection configuration (create or delete indexes)

Parameters

Parameter NameTypeRequiredDescription
collectionNamestringRequiredCloudBase database collection name
optionsobjectRequiredUpdate options supporting creating and deleting indexes
options.CreateIndexesarray of object
options.CreateIndexes[].IndexNamestringRequired
options.CreateIndexes[].MgoKeySchemaobjectRequired
options.CreateIndexes[].MgoKeySchema.MgoIsUniquebooleanRequired
options.CreateIndexes[].MgoKeySchema.MgoIndexKeysarray of objectRequired
options.CreateIndexes[].MgoKeySchema.MgoIndexKeys[].NamestringRequired
options.CreateIndexes[].MgoKeySchema.MgoIndexKeys[].DirectionstringRequired
options.DropIndexesarray of object
options.DropIndexes[].IndexNamestringRequired

checkIndexExists

Check if the index exists

Parameters

Parameter NameTypeRequiredDescription
collectionNamestringRequiredCloudBase database collection name
indexNamestringRequiredIndex name

insertDocuments

Inserts one or multiple documents into the CloudBase database collection (supports array of objects)

Parameters

Parameter NameTypeRequiredDescription
collectionNamestringRequiredCloudBase database collection name
documentsarray of objectRequiredArray of document objects to be inserted, each document is an object.

queryDocuments

Queries documents in the CloudBase database collection (object parameters are supported)

Parameters

Parameter NameTypeRequiredDescription
collectionNamestringRequiredCloudBase database collection name
queryobject \| stringQuery conditions (object or string, object recommended)
projectionobject \| stringField projection (object or string, object recommended)
sortobject \| stringSort conditions (object or string, object recommended)
limitnumberResult limit
offsetnumberNumber of records to skip

updateDocuments

Updates documents in the CloudBase database collection (object parameters are supported)

Parameters

Parameter NameTypeRequiredDescription
collectionNamestringRequiredCloudBase database collection name
queryobject \| stringRequiredQuery conditions (object or string, object recommended)
updateobject \| stringRequiredUpdate data (object or string, object recommended)
isMultibooleanWhether to update multiple records
upsertbooleanWhether to insert when not exist

deleteDocuments

Deletes documents in the CloudBase database collection (supports object parameters)

Parameters

Parameter NameTypeRequiredDescription
collectionNamestringRequiredCloudBase database collection name
queryobject \| stringRequiredQuery conditions (object or string, object recommended)
isMultibooleanWhether to delete multiple records

manageDataModel

Data model query tool that supports querying and listing data models (read-only operations). The list operation returns basic information (without Schema), the get operation returns detailed information (with simplified Schema including field list, format, relationships, etc.), and the docs operation generates SDK usage documentation.

Parameters

Parameter NameTypeRequiredDescription
actionstringRequiredOperation type: get=Query a single model (including Schema field list, format, relationships), list=Obtain model list (without Schema), docs=Generate SDK usage documentation. Allowed values: "get", "list", "docs"
namestringModel name (required for get operation)
namesarray of stringModel name array (optional for list operation, used for filtering)

modifyDataModel

Creates or updates data models based on Mermaid classDiagram. Supports creating new models and updating existing model structures. Features built-in asynchronous task monitoring with automatic polling until completion or timeout.

Parameters

Parameter NameTypeRequiredDescription
mermaidDiagramstringRequiredMermaid classDiagram code describing the data model structure.
actionstringOptionalOperation type: create=Create new model. Allowed values: "create", "update"; Default value: "create"
publishbooleanWhether to publish the model immediately. Default value: false
dbInstanceTypestringDatabase instance type. Default value: "MYSQL"
Example
classDiagram
class Student {
name: name: string <<Name>>
age: age: number = 18 <<Age>>
gender: gender: x-enum = "Male" <<Gender>>
classId: classId: string <<Class ID>>
identityId: identityId: string <<Identity ID>>
course: course: Course[] <<Course>>
required() ["name"]
unique() ["name"]
enum_gender() ["Male", "Female"]
display_field() "name"
}
class Class {
className: className: string <<Class Name>>
display_field() "className"
}
class Course {
name: name: string <<Course Name>>
students: students: Student[] <<Student>>
display_field() "name"
}
class Identity {
number: number: string <<ID Number>>
display_field() "number"
}

%% Relationship
Student "1" --> "1" Identity : studentId
Student "n" --> "1" Class : student2class
Student "n" --> "m" Course : course
Student "n" <-- "m" Course : students
%% Class Naming
note for Student "student model"
note for Class "class model"
note for Course "course model"
note for Identity "identity model"

getFunctionList

Obtains cloud function list or individual function details, with operation type distinguished by the action parameter

Parameters

Parameter NameTypeRequiredDescription
actionstringOptionalOperation type: list=Obtain function list (default), detail=Obtain function details. Allowed values: "list", "detail"
limitnumberRange (used in list operations)
offsetnumberOffset (used in list operations)
namestringFunction name (Required for detail operations)
codeSecretstringCode protection secret key (used in detail operations)

createFunction

Create cloud function

Parameters

Parameter NameTypeRequiredDescription
funcobjectRequiredFunction configuration
func.namestringRequiredFunction name
func.timeoutnumberFunction timeout period
func.envVariablesobjectEnvironment variables
func.vpcobjectVPC configuration
func.vpc.vpcIdstringRequired
func.vpc.subnetIdstringRequired
func.runtimestringRuntime environment. Recommended value: 'Nodejs18.15'. Other options: Nodejs18.15, Nodejs16.13, Nodejs14.18, Nodejs12.16, Nodejs10.15, Nodejs8.9
func.triggersarray of objectTrigger configuration array
func.triggers[].namestringRequiredTrigger name
func.triggers[].typestringRequiredTrigger type, currently only supports 'timer'. Allowed values: "timer"
func.triggers[].configstringRequiredTrigger configuration. For timer triggers, use cron expression format: second minute hour day month week year. IMPORTANT: Must include exactly 7 fields (second minute hour day month week year). Examples: '0 0 2 1 * * *' (monthly), '0 30 9 * * * *' (daily at 9:30 AM)
func.handlerstringFunction entry point
func.ignorestring \| array of stringFiles to ignore
func.isWaitInstallbooleanWhether to wait for dependency installation
func.layersarray of objectLayer configuration
func.layers[].namestringRequired
func.layers[].versionnumberRequired
functionRootPathstringFunction root directory (parent directory of the cloud function directory). Provide the absolute path of the file in the operating system. Note: Do not include the function name itself. For example, if the function name is 'hello', pass '/path/to/cloudfunctions' instead of '/path/to/cloudfunctions/hello'
forcebooleanRequiredWhether to overwrite

updateFunctionCode

Update function code

Parameters

Parameter NameTypeRequiredDescription
namestringRequiredFunction name
functionRootPathstringRequiredFunction root directory (parent directory of the cloud function directory). Provide the absolute path of the file in the operating system

updateFunctionConfig

Update cloud function configuration

Parameters

Parameter NameTypeRequiredDescription
funcParamobjectRequiredFunction configuration
funcParam.namestringRequiredFunction name
funcParam.timeoutnumberTimeout period
funcParam.envVariablesobjectEnvironment variables
funcParam.vpcobjectVPC configuration
funcParam.vpc.vpcIdstringRequired
funcParam.vpc.subnetIdstringRequired

invokeFunction

Invoke cloud function

Parameters

Parameter NameTypeRequiredDescription
namestringRequiredFunction name
paramsobjectInvocation parameters

getFunctionLogs

Obtain basic cloud function log information (LogList). To obtain log details, call the getFunctionLogDetail tool with the RequestId. This API is based on the getFunctionLogsV2 implementation in manger-node 4.4.0+ and does not return specific log content. offset+limit must not exceed 10000, and startTime/endTime interval must not exceed one day.

Parameters

Parameter NameTypeRequiredDescription
namestringRequiredFunction name
offsetnumberOffset, Offset + Limit must not exceed 10000
limitnumberLength of returned data. Offset + Limit must not exceed 10000.
startTimestringThe specific date of the query, e.g., 2017-05-16 20:00:00. The time difference from EndTime must not exceed one day.
endTimestringThe specific date of the query, e.g., 2017-05-16 20:59:59. The time difference from StartTime must not exceed one day.
requestIdstringThe request ID corresponding to the function execution
qualifierstringFunction version, defaults to $LATEST

getFunctionLogDetail

Query log details based on the RequestId returned by getFunctionLogs. Parameters: startTime, endTime, requestId; returns log content (LogJson, etc.). Only supported on manger-node 4.4.0+.

Parameters

Parameter NameTypeRequiredDescription
startTimestringThe specific date of the query, e.g., 2017-05-16 20:00:00. The time difference from EndTime must not exceed one day.
endTimestringThe specific date of the query, e.g., 2017-05-16 20:59:59. The time difference from StartTime must not exceed one day.
requestIdstringYesThe request ID corresponding to the function execution

manageFunctionTriggers

Creates or deletes a cloud function trigger, with operation type distinguished by the action parameter

Parameters

Parameter NameTypeRequiredDescription
actionstringRequiredOperation type: create=Create trigger, delete=Delete trigger. Allowed values: "create", "delete"
namestringRequiredFunction name
triggersarray of objectTrigger configuration array (required when creating)
triggers[].namestringRequiredTrigger name
triggers[].typestringRequiredTrigger type, currently only supports 'timer'. Allowed values: "timer"
triggers[].configstringRequiredTrigger configuration. For timer triggers, use cron expression format: second minute hour day month week year. IMPORTANT: Must include exactly 7 fields (second minute hour day month week year). Examples: '0 0 2 1 * * *' (monthly), '0 30 9 * * * *' (daily at 9:30 AM)
triggerNamestringTrigger name (required when deleting)

uploadFiles

Upload files to static website hosting

Parameters

Parameter NameTypeRequiredDescription
localPathstringLocal file or folder path, must be an absolute path, e.g. /tmp/files/data.txt
cloudPathstringCloud file or folder path, e.g. files/data.txt
filesarray of objectMulti-file upload configuration. Default value: []
files[].localPathstringRequired
files[].cloudPathstringRequired
ignorestring \| array of stringFile ignore pattern

deleteFiles

Delete files or folders in Static Hosting

Parameters

Parameter NameTypeRequiredDescription
cloudPathstringRequiredCloud file or folder path
isDirbooleanWhether it is a folder. Default value: false

findFiles

Search files in static website hosting

Parameters

Parameter NameTypeRequiredDescription
prefixstringRequiredMatching prefix
markerstringStarting object key marker
maxKeysnumberMaximum number of entries returned per request

domainManagement

Unified domain management tool that supports binding, unbinding, querying, and modifying domain configurations

Parameters

Parameter NameTypeRequiredDescription
actionstringRequiredOperation type: create=Bind domain, delete=Unbind domain, check=Query domain configuration, modify=Modify domain configuration. Allowed values: "create", "delete", "check", "modify"
domainstringDomain
certIdstringCertificate ID (required when binding a domain)
domainsarray of stringDomain list (used when querying configurations)
domainIdnumberDomain ID (required when modifying configurations)
domainConfigobjectDomain configuration (used when modifying configurations)
domainConfig.Referobject
domainConfig.Refer.SwitchstringRequired
domainConfig.Refer.RefererRulesarray of object
domainConfig.Refer.RefererRules[].RefererTypestringRequired
domainConfig.Refer.RefererRules[].Referersarray of stringRequired
domainConfig.Refer.RefererRules[].AllowEmptybooleanRequired
domainConfig.Cachearray of object
domainConfig.Cache[].RuleTypestringRequired
domainConfig.Cache[].RuleValuestringRequired
domainConfig.Cache[].CacheTtlnumberRequired
domainConfig.IpFilterobject
domainConfig.IpFilter.SwitchstringRequired
domainConfig.IpFilter.FilterTypestring
domainConfig.IpFilter.Filtersarray of string
domainConfig.IpFreqLimitobject
domainConfig.IpFreqLimit.SwitchstringRequired
domainConfig.IpFreqLimit.Qpsnumber

queryStorage

Queries cloud storage information, supporting read-only operations such as listing directory files, obtaining file details, and generating temporary download URLs. Returned file information includes file name, size, last modified time, download URL, etc.

Parameters

Parameter NameTypeRequiredDescription
actionstringRequiredQuery operation type: list=List all files in the directory, info=Retrieve detailed information of specified files, url=Obtain temporary download URLs for files. Allowed values: "list", "info", "url"
cloudPathstringRequiredCloud file path, e.g. files/data.txt or files/ (directory)
maxAgenumberValidity period of temporary links in seconds. Value range: 1-86400. Default: 3600 (1 hour)

manageStorage

Manages cloud storage files, supporting operations such as uploading files/directories, downloading files/directories, and deleting files/directories. Delete operations require setting force=true for confirmation to prevent accidental deletion of important files.

Parameters

Parameter NameTypeRequiredDescription
actionstringRequiredManagement operation type: upload=Upload files or directories, download=Download files or directories, delete=Delete files or directories. Allowed values: "upload", "download", "delete"
localPathstringRequiredLocal file path. It is recommended to provide an absolute path, e.g. /tmp/files/data.txt
cloudPathstringRequiredCloud file path, e.g. files/data.txt
forcebooleanForce operation switch. For delete operations, it is recommended to set this to true to confirm deletion. Default: false
isDirectorybooleanWhether the operation is for a directory. true=directory operation, false=file operation. Default: false

downloadTemplate

Automatically download and deploy the CloudBase project template.

Supported templates:

  • react: React + CloudBase full-stack application template
  • vue: Vue + CloudBase full-stack application template
  • miniprogram: WeChat Mini Program + CloudBase Template
  • uniapp: UniApp + CloudBase Cross-Platform Application Template
  • rules: Only includes AI editor configuration files (covering all mainstream editors such as Cursor, WindSurf, CodeBuddy). Suitable for supplementing AI editor configurations in existing projects.

Supported IDE types:

  • all: Download all IDE configurations (default)
  • cursor: Cursor AI editor
  • windsurf: WindSurf AI editor
  • codebuddy: CodeBuddy AI editor
  • claude-code: Claude Code AI editor
  • cline: Cline AI editor
  • gemini-cli: Gemini CLI
  • opencode: OpenCode AI editor
  • qwen-code: Tongyi Lingma
  • baidu-comate: Baidu Comate
  • openai-codex-cli: OpenAI Codex CLI
  • augment-code: Augment Code
  • github-copilot: GitHub Copilot
  • roocode: RooCode AI editor
  • tongyi-lingma: Tongyi Lingma
  • trae: Trae AI editor
  • vscode: Visual Studio Code

Special note:

  • The rules template automatically includes the current mcp version information (version: 1.8.41) for subsequent maintenance and version tracking
  • When downloading the rules template, if a README.md file already exists in the project, the system will automatically protect this file from being overwritten (unless overwrite=true is set)

Parameters

Parameter NameTypeRequiredDescription
templatestringRequiredThe type of template to download. Allowed values: "react", "vue", "miniprogram", "uniapp", "rules"
idestringSpecifies the type of IDE to download, defaults to 'all' (download configurations for all IDEs). Allowed values: "all", "cursor", "windsurf", "codebuddy", "claude-code", "cline", "gemini-cli", "opencode", "qwen-code", "baidu-comate", "openai-codex-cli", "augment-code", "github-copilot", "roocode", "tongyi-lingma", "trae", "vscode"; Default value: "all"
overwritebooleanWhether to overwrite existing files. Default value: false (no overwriting)

interactiveDialog

Unified interactive dialog tool supporting requirement clarification and task confirmation. When needing to confirm next steps with users, call this tool's clarify method; for sensitive operations requiring user confirmation, call this tool's confirm method.

Parameters

Parameter NameTypeRequiredDescription
typestringRequiredInteraction type: clarify=requirement clarification, confirm=task confirmation. Allowed values: "clarify", "confirm"
messagestringDialog message content
optionsarray of stringOptional preset options
forceUpdatebooleanWhether to forcefully update the environment ID configuration
risksarray of stringOperation risk warnings

searchWeb

Performs information retrieval using web search, such as querying the latest news, articles, stock prices, weather, etc. Supports natural language queries and can also directly enter URLs to obtain webpage content.

Parameters

Parameter NameTypeRequiredDescription
querystringRequiredSearch keywords, questions, or URLs; natural language is supported

searchKnowledgeBase

Cloud Development knowledge base intelligent search tool supporting vector-based queries for Cloud Development and Cloud Functions knowledge

Parameters

Parameter NameTypeRequiredDescription
thresholdnumberSimilarity search threshold. Default value: 0.5
idstringRequiredKnowledge base scope, cloudbase=Full knowledge of CloudBase, scf=Cloud Functions knowledge of CloudBase, miniprogram=Mini Program knowledge (excluding CloudBase and Cloud Functions knowledge). Valid values: "cloudbase", "scf", "miniprogram"
contentstringRequiredSearch content
optionsobjectAdditional options
options.chunkExpandarray of numberSpecifies the expansion length of the returned document content. For example, [3,3] represents the front and back expansion lengths. Default value: [3,3]
limitnumberSpecifies the value of K for returning the Top K most similar results. Default value: 5

queryCloudRun

Query Cloud Run service information, supporting operations such as obtaining service lists, querying service details, and acquiring available template lists. Returned service information includes service name, status, access type, configuration details, etc.

Parameters

Parameter NameTypeRequiredDescription
actionstringRequiredQuery operation type: list=Retrieve cloud hosting service list (supports pagination and filtering), detail=Query detailed information of specified services (including configuration, version, access address, etc.), templates=Retrieve available project template lists (for initializing new projects). Allowed values: "list", "detail", "templates"
pageSizenumberPage size, controlling the number of services returned per page. Valid range: 1-100. Default value: 10. It is recommended to adjust based on network performance and display requirements. Default value: 10
pageNumnumberPage number, used for paginated queries. Starts from 1, default value: 1. Used together with pageSize to achieve paginated browsing. Default value: 1
serverNamestringService name filter condition, supporting fuzzy matching. For example: entering "test" will match service names like "test-service" and "my-test-app". If left blank, all services will be queried.
serverTypestringService type filter condition: function=Function-based Cloud Run (simplified development model supporting WebSocket/SSE/file upload, ideal for rapid development), container=Container-based services (traditional container deployment supporting any language and framework, suitable for complex applications). Allowed values: "function", "container"
detailServerNamestringService name for which to query detailed information. Must be provided when action is detail, and must be an existing service name. The list of available service names can be obtained via list operations.

manageCloudRun

Manages Cloud Run services, supporting the following operations in development sequence: initialize projects (can start from templates, template list queryable via queryCloudRun), download service code, local execution (function-based services only), deploy code, and delete services. Deployment supports configurable parameters such as CPU, memory, instance count, and access type. Delete operations require confirmation; setting force=true is recommended.

Parameters

Parameter NameTypeRequiredDescription
actionstringRequiredCloud Run service management operation type: init=Initialize new Cloud Run project code from a template (Creates a subdirectory named serverName under the targetPath directory, supports multiple languages and framework templates), download=Download code of existing services from the cloud to local for development, run=Run function-based Cloud Run services locally (For development and debugging, supports function-based services only), deploy=Deploy local code to cloud-based Cloud Run services (Supports function-based and container-based), delete=Delete specified Cloud Run services (Irreversible, requires confirmation), createAgent=Create function-based Agent (Develop AI agents based on function-based Cloud Run). Allowed values: "init", "download", "run", "deploy", "delete", "createAgent"
serverNamestringRequiredCloud Run service name, used to identify and manage services. Naming rules: Supports uppercase/lowercase letters, numbers, hyphens, and underscores; must start with a letter; length 3-45 characters. In init operations, it serves as the subdirectory name created under targetPath; in other operations, it functions as the target service name.
targetPathstringLocal code path, must be an absolute path. Specifies the code directory to deploy in deploy operations, the target download directory in download operations, and the parent directory for Cloud Run services in init operations (a subdirectory named after serverName will be created under this directory). Recommended convention: cloudrun/ directory under the project root, e.g., /Users/username/projects/my-project/cloudrun
serverConfigobjectService configuration used to set runtime parameters during deployment, including resource specifications, access permissions, environment variables, etc. Uses default configuration if not provided.
serverConfig.OpenAccessTypesarray of stringPublic access type configuration, controlling service access permissions: WEB=Public access (default, accessible via HTTPS domain), VPC=Private network access (accessible only within the same VPC), PRIVATE=Internal access (accessible only within the cloud development environment). Multiple types can be configured.
serverConfig.CpunumberCPU specification configuration, in cores. Optional values: 0.25, 0.5, 1, 2, 4, 8, etc. Note: Memory specification must be twice the CPU specification (e.g., when CPU=0.25, memory=0.5; when CPU=1, memory=2). Affects service performance and billing.
serverConfig.MemnumberMemory specification configuration, in GB. Optional values: 0.5, 1, 2, 4, 8, 16, etc. Note: Must be twice the CPU specification. Affects service performance and billing.
serverConfig.MinNumnumberMinimum instance count configuration, controlling the minimum number of running service instances. When set to 0, supports scaling down to 0 (no cost when no requests). When set greater than 0, always maintains the specified number of running instances (ensures quick response but increases costs).
serverConfig.MaxNumnumberMaximum instance count configuration, controlling the maximum number of running service instances. When request volume increases, the service can scale up to the specified number of instances. Once this limit is exceeded, new requests will be rejected. Recommended to set based on business peak demand.
serverConfig.PortnumberService listening port configuration. Fixed at 3000 for function-based services; customizable for container-based services. The service code must listen on this port to properly receive requests.
serverConfig.EnvParamsobjectEnvironment variable configuration used to pass configuration information to the service code. Format is key-value pairs, e.g., {"DATABASE_URL":"mysql://..."}. Sensitive information should be stored in environment variables rather than hardcoded.
serverConfig.DockerfilestringDockerfile filename configuration, required only for container-based services. Specifies the Dockerfile path used to build container images, defaults to Dockerfile in the project root directory.
serverConfig.BuildDirstringBuild directory configuration, specifying the directory path for code building. Used when the code structure differs from the standard, defaults to the project root directory.
serverConfig.InternalAccessbooleanInternal access switch configuration, controlling whether to enable private network access. true=Enable internal access (directly callable via CloudBase SDK), false=Disable internal access (public access only)
serverConfig.EntryPointstringDockerfile EntryPoint parameter configuration, required only for container-based services. Specifies the entry point command for container startup, e.g., ["node","app.js"].
serverConfig.CmdstringDockerfile Cmd parameter configuration, required only for container-based services. Specifies the default command for container startup, e.g., ["npm","start"]
templatestringProject template identifier used to specify the template for initializing a project. Available templates can be obtained via the templates operation of queryCloudRun. Common templates: helloworld=Hello World example, nodejs=Node.js project template, python=Python project template, etc. Default value: "helloworld"
runOptionsobjectLocal runtime parameter configuration, supported only by function-based cloud hosting services. Used to configure runtime parameters for the local development environment without affecting cloud deployment.
runOptions.portnumberLocal runtime port configuration, valid only for function-based services. Specifies the port number that the service listens on when running locally, default is 3000. Ensure the port is not occupied by other programs. Default value: 3000
runOptions.envParamsobjectAdditional environment variable configuration for local runtime, used for local development and debugging. Format is key-value pairs, e.g., {"DEBUG":"true","LOG_LEVEL":"debug"}. These variables take effect only during local execution.
runOptions.runModestringRun mode: normal=Normal function mode, agent=Agent mode (for AI agent development). Allowed values: "normal", "agent"; Default value: "normal"
runOptions.agentIdstringAgent ID, used in agent mode, identifies specific Agent instances.
agentConfigobjectAgent configuration, used only during the createAgent operation
agentConfig.agentNamestringYesAgent name, used to generate BotId.
agentConfig.botTagstringBot tag, used to generate BotId, automatically generated if not provided
agentConfig.descriptionstringAgent description
agentConfig.templatestringAgent template type, default is blank (blank template). Default value: "blank"
forcebooleanForce operation switch, used to skip confirmation prompts. Default is false (confirmation required). When set to true, all confirmation steps are skipped. For delete operations, it is strongly recommended to set to true to prevent accidental operations. Default value: false

createFunctionHTTPAccess

Create HTTP access for cloud function

Parameters

Parameter NameTypeRequiredDescription
namestringRequiredFunction name
pathstringRequiredHTTP access path

downloadRemoteFile

Downloads remote files to a specified relative path under the project root directory. For example: resource images such as the Mini Program's Tabbar must be in png format and can be chosen from resources like Unsplash, wikimedia (generally select the 500 size), Pexels, Apple's official UI, etc. to download.

Parameters

Parameter NameTypeRequiredDescription
urlstringRequiredURL address of the remote file
relativePathstringRequiredPath relative to the project root directory, for example: 'assets/images/logo.png' or 'docs/api.md'. Path traversal operations such as ../ are not allowed.

readSecurityRule

Read the security rules and permission types of specified resources (database collection, cloud function, bucket).

Parameter description:

  • resourceType: Resource type (database/function/storage)
  • resourceId: Unique resource identifier (collection name/function name/bucket name)

Parameters

Parameter NameTypeRequiredDescription
resourceTypestringRequiredResource type: database=database collection, function=cloud function, storage=bucket. Allowed values: "database", "function", "storage"
resourceIdstringRequiredUnique resource identifier. For databases, it is the collection name; for cloud functions, it is the function name; for storage, it is the bucket name.

writeSecurityRule

Set security rules for specified resources (database collection, cloud function, bucket).

Parameter description:

  • resourceType: Resource type (database/function/storage)
  • resourceId: Unique resource identifier (collection name/function name/bucket name)
  • aclTag: Permission category (READONLY/PRIVATE/ADMINWRITE/ADMINONLY/CUSTOM)
  • rule: Custom security rule content, required only when aclTag is CUSTOM

Parameters

Parameter NameTypeRequiredDescription
resourceTypestringRequiredResource type: database=database collection, function=cloud function, storage=bucket. Allowed values: "database", "function", "storage"
resourceIdstringRequiredUnique resource identifier. For databases, it is the collection name; for cloud functions, it is the function name; for storage, it is the bucket name.
aclTagstringRequiredPermission category. Allowed values: "READONLY", "PRIVATE", "ADMINWRITE", "ADMINONLY", "CUSTOM"
rulestringCustom security rule content, required only when aclTag is CUSTOM

activateInviteCode

CloudBase AI programming incentive program, activating user incentives through invitation codes.

Parameters

Parameter NameTypeRequiredDescription
InviteCodestringRequiredInvitation code to be activated