tools-runtimes-and-services
Attach Python functions, CAMEL toolkits, MCP/OpenAPI tools, runtime-backed execution, interpreters, and service routes to CAMEL agents safely.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- tools-runtimes-and-services
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Attach Python functions, CAMEL toolkits, MCP/OpenAPI tools, runtime-backed execution, interpreters, and service routes to CAMEL agents safely.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md6.6 KB
- 参考文档references/runtime-service-patterns.md7.2 KB
- 参考文档references/toolkit-catalog.md5.4 KB
- 参考文档references/troubleshooting.md6.5 KB
03 SKILL.md 正文
Tools, Runtimes, and Services
Use this sub-skill when a task needs CAMEL agents to call tools, expose tools through services, or execute code in a controlled runtime. It covers camel.toolkits, FunctionTool, toolkit get_tools() patterns, MCPToolkit, OpenAPIToolkit, CodeExecutionToolkit, TerminalToolkit, camel.runtimes, camel.interpreters, CAMEL agent MCP service patterns, and camel.services.agent_openapi_server.
Do not use this sub-skill for provider/model credentials or model backend selection; route that to the model/provider sub-skill. Do not use it for retrieval-specific memory/RAG tools beyond high-level routing; route retrieval work to ../memory-rag-and-data/SKILL.md when available. Do not use it for multi-agent loop design except to show how the agent receives tools.
Fast Routing
- For custom Python functions and tool schemas, read references/api-reference.md and optionally run scripts/inspect_tool_schema.py.
- For selecting a built-in toolkit or optional extra, read references/toolkit-catalog.md.
- For MCP, OpenAPI, terminal/code execution, runtimes, interpreters, AgentOpenAPI, or service deployment patterns, read references/runtime-service-patterns.md.
- For failures around schemas,
external_tools, missing extras, API credentials, MCP startup, Docker/browser/runtime availability, sandbox safety, or OpenAPI auth, read references/troubleshooting.md.
Minimal Patterns
from camel.agents import ChatAgent
from camel.toolkits import FunctionTool, SearchToolkit
def add(a: int, b: int) -> int:
"""Add two integers."""
return a + b
agent = ChatAgent(tools=[FunctionTool(add), *SearchToolkit().get_tools()])
from camel.toolkits import MCPToolkit
async with MCPToolkit(config_dict={"mcpServers": {"demo": {"command": "python", "args": ["server.py"]}}}) as toolkit:
agent = ChatAgent(tools=toolkit.get_tools())
Safety Defaults
Prefer pure schema inspection before live calls, treat browser/Docker/terminal/runtime tools as side-effecting, and keep secrets in environment variables or service config outside skill content. For code execution, start with internal_python or a sandboxed runtime, explicitly decide require_confirm, and never enable unsafe_mode=True for untrusted model-generated code without an external sandbox and human approval.
04 同仓库更多 Skills
ci-cd-and-automation
Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.
chrome-devtools
Uses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests. This skill does not apply to `--slim` mode (MCP configuration).
chrome-cdp
Drive a real Chrome via the Chrome DevTools Protocol (CDP). Ensures a debuggable Chrome is running (launching it if needed) so the agent can navigate, read page content, inspect the DOM, run JavaScript, and take screenshots — without the user typing any launch command. Includes a first-class "review a live running app" flow: point Chrome at the app under development and inspect/screenshot the REAL page (what a static-artifact tool cannot do). Backed by Glimpse and the chrome-devtools MCP server. Use when asked to "use chrome", "open chrome", "drive my browser", "read the page in chrome", "review the running app", "screenshot the app", or "/chrome-cdp".
check-identity-pack
Run an AFP 100-point or AUSTRAC safe-harbour identity check over a set of documents, and report exactly what's missing. Use when the user asks to check identity documents, verify someone's ID for onboarding, or assess whether a document pack satisfies Australian identity requirements.
changelog
Auto-generates a changelog from git commits, sprint data, and design documents. Produces both internal and player-facing versions.
cellxgene-census
Query the CZ CELLxGENE Census programmatically for versioned public single-cell and spatial transcriptomics data. Use when you need population-scale cell metadata, gene expression slices, Census summary counts, source H5AD URIs/downloads, embeddings, spatial Census data, or reference atlas comparisons across organisms, tissues, diseases, assays, and cell types. For analyzing your own local single-cell data use scanpy, anndata, or scvi-tools.