File tree Expand file tree Collapse file tree 13 files changed +286
-6
lines changed Expand file tree Collapse file tree 13 files changed +286
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : getAgent
3+ cbbaseinfo :
4+ description : Retrieves an agent based on the specified task.
5+ cbparameters :
6+ parameters :
7+ - name : task
8+ typeName : string
9+ description : The task for which an agent is needed.
10+ returns :
11+ signatureTypeName : Promise
12+ description : A promise that resolves with the agent details.
13+ typeArgs :
14+ - type : reference
15+ name : any
16+ data :
17+ name : getAgent
18+ category : agent
19+ link : getAgent.md
20+ ---
21+ <CBBaseInfo />
22+ <CBParameters />
23+
24+ ### Example
25+
26+ ``` js
27+ // Example: Retrieving an agent for a task
28+ const agentDetails = await codebolt .agent .getAgent (" dataProcessing" );
29+ console .log (" Agent Details:" , agentDetails);
30+ ```
Original file line number Diff line number Diff line change 1+ ---
2+ cbapicategory :
3+ - name : getAgent
4+ link : /docs/api/agent/getAgent
5+ description : Retrieves an agent based on the specified task via WebSocket.
6+ - name : startAgent
7+ link : /docs/api/agent/startAgent
8+ description : Starts an agent for the specified task via WebSocket.
9+ ---
10+ # Agent
11+ <CBAPICategory />
Original file line number Diff line number Diff line change 1+ ---
2+ name : startAgent
3+ cbbaseinfo :
4+ description : Starts an agent for the specified task.
5+ cbparameters :
6+ parameters :
7+ - name : task
8+ typeName : string
9+ description : The task for which the agent should be started.
10+ returns :
11+ signatureTypeName : Promise
12+ description : A promise that resolves when the agent has been successfully started.
13+ typeArgs :
14+ - type : reference
15+ name : any
16+ data :
17+ name : startAgent
18+ category : agent
19+ link : startAgent.md
20+ ---
21+ <CBBaseInfo />
22+ <CBParameters />
23+
24+ ### Example
25+
26+ ``` js
27+ // Example: Starting an agent for a task
28+ const startResponse = await codebolt .agent .startAgent (" dataProcessing" );
29+ console .log (" Agent Start Response:" , startResponse);
30+
31+ ```
Original file line number Diff line number Diff line change 1+ {
2+ "label" : " MCP" ,
3+ "position" : 2.5 ,
4+ "collapsible" : true ,
5+ "collapsed" : true ,
6+ "className" : " red" ,
7+ "link" : {
8+ "type" : " doc" ,
9+ "id" : " api/mcp/index"
10+ }
11+ }
Original file line number Diff line number Diff line change 1+ ---
2+ name : executeTool
3+ cbbaseinfo :
4+ description : Executes a specified tool with the provided parameters.
5+ cbparameters :
6+ parameters :
7+ - name : toolName
8+ typeName : string
9+ description : The name of the tool to execute.
10+ - name : params
11+ typeName : any
12+ description : Parameters required for executing the tool.
13+ - name : mcpServer
14+ typeName : string (optional)
15+ description : The MCP server to use for execution.
16+ returns :
17+ signatureTypeName : Promise
18+ description : A promise that resolves with the tool execution result.
19+ typeArgs :
20+ - type : reference
21+ name : any
22+ data :
23+ name : executeTool
24+ category : mcp
25+ link : executeTool.md
26+ ---
27+ <CBBaseInfo />
28+ <CBParameters />
29+
30+ ### Example
31+
32+ ``` js
33+ // Example: Executing a tool
34+ const result = await codebolt .mcp .executeTool (" imageProcessor" , { imageUrl: " https://example.com/image.jpg" });
35+ console .log (" Tool Execution Result:" , result);
36+
37+ ```
Original file line number Diff line number Diff line change 1+ ---
2+ name : getAllMCPTools
3+ cbbaseinfo :
4+ description : Retrieves all available MCP tools for a given MCP instance.
5+ cbparameters :
6+ parameters :
7+ - name : mpcName
8+ typeName : string
9+ description : The name of the MCP instance.
10+ returns :
11+ signatureTypeName : Promise
12+ description : A promise that resolves with a list of all MCP tools.
13+ typeArgs :
14+ - type : reference
15+ name : any
16+ data :
17+ name : getAllMCPTools
18+ category : mcp
19+ link : getAllMCPTools.md
20+ ---
21+ <CBBaseInfo />
22+ <CBParameters />
23+
24+ ### Example
25+
26+ ``` js
27+ // Example: Retrieving all MCP tools
28+ const allTools = await codebolt .mcp .getAllMCPTools (" mainMCP" );
29+ console .log (" All MCP Tools:" , allTools);
30+
31+ ```
Original file line number Diff line number Diff line change 1+ ---
2+ name : getEnabledMCPS
3+ cbbaseinfo :
4+ description : Retrieves a list of enabled MCP instances.
5+ cbparameters :
6+ parameters : []
7+ returns :
8+ signatureTypeName : Promise
9+ description : A promise that resolves with the list of enabled MCP instances.
10+ typeArgs :
11+ - type : reference
12+ name : any
13+ data :
14+ name : getEnabledMCPS
15+ category : mcp
16+ link : getEnabledMCPS.md
17+ ---
18+ <CBBaseInfo />
19+ <CBParameters />
20+
21+ ### Example
22+
23+ ``` js
24+ // Example: Retrieving enabled MCP instances
25+ const enabledMCPS = await codebolt .mcp .getEnabledMCPS ();
26+ console .log (" Enabled MCPs:" , enabledMCPS);
27+
28+ ```
Original file line number Diff line number Diff line change 1+ ---
2+ name : getMCPTool
3+ cbbaseinfo :
4+ description : Retrieves details of a specific MCP tool.
5+ cbparameters :
6+ parameters :
7+ - name : name
8+ typeName : string
9+ description : The name of the MCP tool to retrieve.
10+ returns :
11+ signatureTypeName : Promise
12+ description : A promise that resolves with the MCP tool details.
13+ typeArgs :
14+ - type : reference
15+ name : any
16+ data :
17+ name : getMCPTool
18+ category : mcp
19+ link : getMCPTool.md
20+ ---
21+ <CBBaseInfo />
22+ <CBParameters />
23+
24+ ### Example
25+
26+ ``` js
27+ // Example: Retrieving a specific MCP tool
28+ const toolDetails = await codebolt .mcp .getMCPTool (" imageProcessor" );
29+ console .log (" MCP Tool Details:" , toolDetails);
30+
31+ ```
Original file line number Diff line number Diff line change 1+ ---
2+ name : getMcpTools
3+ cbbaseinfo :
4+ description : Retrieves a list of specified MCP tools.
5+ cbparameters :
6+ parameters :
7+ - name : tools
8+ typeName : string[]
9+ description : An array of tool names to retrieve.
10+ returns :
11+ signatureTypeName : Promise
12+ description : A promise that resolves with the list of requested MCP tools.
13+ typeArgs :
14+ - type : reference
15+ name : any
16+ data :
17+ name : getMcpTools
18+ category : mcp
19+ link : getMcpTools.md
20+ ---
21+ <CBBaseInfo />
22+ <CBParameters />
23+
24+ ### Example
25+
26+ ``` js
27+
28+ // Example: Retrieving a list of specific MCP tools
29+ const tools = await codebolt .mcp .getMcpTools ([" imageProcessor" , " dataAnalyzer" ]);
30+ console .log (" MCP Tools:" , tools);
31+
32+ ```
Original file line number Diff line number Diff line change 1+ ---
2+ cbapicategory :
3+ - name : executeTool
4+ link : /docs/api/mcp/executeTool
5+ description : Executes a specified tool with the provided parameters via WebSocket.
6+ - name : getMcpTools
7+ link : /docs/api/mcp/getMcpTools
8+ description : Retrieves a list of specified MCP tools via WebSocket.
9+ - name : getAllMCPTools
10+ link : /docs/api/mcp/getAllMCPTools
11+ description : Retrieves all available MCP tools for a given MCP instance via WebSocket.
12+ - name : getMCPTool
13+ link : /docs/api/mcp/getMCPTool
14+ description : Retrieves details of a specific MCP tool via WebSocket.
15+ - name : getEnabledMCPS
16+ link : /docs/api/mcp/getEnabledMCPS
17+ description : Retrieves a list of enabled MCP instances via WebSocket.
18+ ---
19+ # MCP
20+ <CBAPICategory />
You can’t perform that action at this time.
0 commit comments