安全 Python 代码沙箱:在隔离的沙箱中执行任意 Python 代码,预装 requests、NumPy、pandas 库。返回 stdout、stderr。
安全 Python 代码 Sandbox.是一项面向实际任务的技能,主要用于Freshness.;Last 更新: 2026-06- 10. 如果当前日期是上次更新日期后的7天以上, 请在依赖前从技能.sh 或 ClawHub 重新安装此技能。
从功能定位来看,该技能强调把分散的操作要求整理成清晰、可复用的处理流程,使用户能够围绕既定目标快速准备输入、选择执行方式并获得结构化结果。实际使用前应先确认任务范围、数据来源、运行环境、必要权限和关键参数,再依据技能说明逐步执行;
若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;涉及批量任务时,还应保存进度,避免中断后重复操作。
最后更新时间:2026-06-10。
若当前日期距上次更新日期已超过 7 天,请在依赖该技能的端点、模式(schema)、配置步骤或示例前,通过 skills.sh 或 ClawHub 重新安装此技能。
用于在隔离且安全的环境中安全执行任意 Python 代码片段。该沙箱已预装常用的数据科学与网络请求类库,包括 requests、NumPy 和 pandas。适用于快速计算、数据转换或动态 API 调用等场景,无需依赖外部基础设施。
Secure Python Code Sandbox。invoke。本工具未发布任何类别或行业标签。
完整生成的动作模式文件:./schema.md。
支持的动作数量:1。
x402 可用性:本产品未启用 x402 功能。
invoke(动作标识符 slug:invoke):用于在隔离、安全的环境中安全执行任意 Python 代码片段。沙箱已预装常见数据科学与网络请求类库,包括 requests、NumPy 和 pandas。适用于无需外部基础设施支撑的快速计算、数据变换或动态 API 调用。调用费用:10 积分。参数:code、timeout_seconds。日常调用请使用上方精简模式。在新建生产级集成前,或当参数、枚举值、嵌套对象、返回字段、示例等信息不明确时,请优先获取实时详情。
agentpmt-tool-search-and-execution,参数为 action: "get_schema" 且 tool_id: "secure-python-code-sandbox"。agentpmt-tool-search-and-execution,参数为 action: "get_instructions" 且 tool_id: "secure-python-code-sandbox";或在已选定本产品工具的前提下,直接对该产品调用 action: "get_instructions"。通过主 AgentPMT MCP 服务器进行 MCP 模式查询:
{
"method": "tools/call",
"params": {
"name": "AgentPMT-Tool-Search-and-Execution",
"arguments": {
"action": "get_schema",
"tool_id": "secure-python-code-sandbox"
}
}
}
获取实时示例时,请复用同一 MCP 工具,并使用如下参数:
{
"action": "get_instructions",
"tool_id": "secure-python-code-sandbox"
}
经身份认证的 AgentPMT REST 接口模式查询请求体:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_schema",
"tool_id": "secure-python-code-sandbox"
}
}
经身份认证的 AgentPMT REST 接口实时示例请求体:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_instructions",
"tool_id": "secure-python-code-sandbox"
}
}
产品标识符(Product slug):secure-python-code-sandbox
应用市场页面:https://www.agentpmt.com/marketplace/secure-python-code-sandbox
../agentpmt-account-mcp-rest-api-setup,为已启用本工具的 Agent Group 连接主 MCP 服务器或 REST API。../what-is-agentpmt,了解应用市场、Agent Group、工作流(workflow)、MCP、REST 及支付等相关概念。若上述配置类技能尚未与本产品技能一同安装,请使用下方下载链接安装。
核心 AgentPMT 配置技能:
../what-is-agentpmtopenclaw skills install what-is-agentpmtnpx skills add AgentPMT/agent-skills --skill what-is-agentpmt../agentpmt-account-mcp-rest-api-setupopenclaw skills install agentpmt-account-mcp-rest-api-setupnpx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setupskills.sh 安装脚本:
npx skills add AgentPMT/agent-skills --skill what-is-agentpmt npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup
主 AgentPMT MCP 服务器连接成功后的调用格式:
{
"method": "tools/call",
"params": {
"name": "Secure-Python-Code-Sandbox",
"arguments": {
"action": "invoke",
"code": "example code",
"timeout_seconds": 10
}
}
}
请使用 tools/list 返回的确切工具名称;上方名称仅为预期可读形式。
经身份认证的 AgentPMT REST 接口调用请求体:
{
"name": "secure-python-code-sandbox",
"parameters": {
"action": "invoke",
"code": "example code",
"timeout_seconds": 10
}
}
发起 REST 调用前,请务必先使用配置类技能获取账户连接所需凭证信息。
passed 字段或类似的成功布尔值,请将其作为工作流(workflow)的通行门控条件。get_schema 或 get_instructions 获取最新定义。invoke 调用失败,请保留原始请求参数,并仅在修复模式(schema)、身份认证(auth)或支付(payment)相关错误后重试。../what-is-agentpmt(ClawHub 标识符:what-is-agentpmt,页面地址:https://clawhub.ai/agentpmt/what-is-agentpmt;skills.sh 命令:npx skills add AgentPMT/agent-skills --skill what-is-agentpmt)../agentpmt-account-mcp-rest-api-setup(ClawHub 标识符:agentpmt-account-mcp-rest-api-setup,页面地址:https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup;skills.sh 命令:npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup)