mirror of
https://github.com/CreatorEdition/system-prompts-and-models-of-ai-tools-chinese.git
synced 2026-02-25 10:41:05 +08:00
614 lines
18 KiB
JSON
614 lines
18 KiB
JSON
[
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "message_notify_user",
|
||
"description": "向用户发送无需回复的消息。用于确认消息接收、提供进度更新、报告任务完成或解释方法变更。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"text": {
|
||
"type": "string",
|
||
"description": "展示给用户的消息文本"
|
||
},
|
||
"attachments": {
|
||
"anyOf": [
|
||
{"type": "string"},
|
||
{"items": {"type": "string"}, "type": "array"}
|
||
],
|
||
"description": "(可选) 展示给用户的附件列表,可以是文件路径或URL"
|
||
}
|
||
},
|
||
"required": ["text"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "message_ask_user",
|
||
"description": "向用户提问并等待回复。用于请求澄清、获取确认或收集额外信息。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"text": {
|
||
"type": "string",
|
||
"description": "展示给用户的问题文本"
|
||
},
|
||
"attachments": {
|
||
"anyOf": [
|
||
{"type": "string"},
|
||
{"items": {"type": "string"}, "type": "array"}
|
||
],
|
||
"description": "(可选) 与问题相关的文件或参考资料列表"
|
||
},
|
||
"suggest_user_takeover": {
|
||
"type": "string",
|
||
"enum": ["none", "browser"],
|
||
"description": "(可选) 建议用户接管的操作类型"
|
||
}
|
||
},
|
||
"required": ["text"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "file_read",
|
||
"description": "读取文件内容。用于检查文件内容、分析日志或读取配置文件。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file": {
|
||
"type": "string",
|
||
"description": "待读取文件的绝对路径"
|
||
},
|
||
"start_line": {
|
||
"type": "integer",
|
||
"description": "(可选) 起始读取行号(从0开始)"
|
||
},
|
||
"end_line": {
|
||
"type": "integer",
|
||
"description": "(可选) 结束行号(不包含)"
|
||
},
|
||
"sudo": {
|
||
"type": "boolean",
|
||
"description": "(可选) 是否使用sudo权限"
|
||
}
|
||
},
|
||
"required": ["file"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "file_write",
|
||
"description": "覆盖或追加内容到文件。用于创建新文件、追加内容或修改现有文件。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file": {
|
||
"type": "string",
|
||
"description": "待写入文件的绝对路径"
|
||
},
|
||
"content": {
|
||
"type": "string",
|
||
"description": "待写入的文本内容"
|
||
},
|
||
"append": {
|
||
"type": "boolean",
|
||
"description": "(可选) 是否使用追加模式"
|
||
},
|
||
"leading_newline": {
|
||
"type": "boolean",
|
||
"description": "(可选) 是否添加起始换行符"
|
||
},
|
||
"trailing_newline": {
|
||
"type": "boolean",
|
||
"description": "(可选) 是否添加结尾换行符"
|
||
},
|
||
"sudo": {
|
||
"type": "boolean",
|
||
"description": "(可选) 是否使用sudo权限"
|
||
}
|
||
},
|
||
"required": ["file", "content"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "file_str_replace",
|
||
"description": "替换文件中的指定字符串。用于更新文件特定内容或修复代码错误。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file": {
|
||
"type": "string",
|
||
"description": "待替换文件的绝对路径"
|
||
},
|
||
"old_str": {
|
||
"type": "string",
|
||
"description": "待替换的原字符串"
|
||
},
|
||
"new_str": {
|
||
"type": "string",
|
||
"description": "用于替换的新字符串"
|
||
},
|
||
"sudo": {
|
||
"type": "boolean",
|
||
"description": "(可选) 是否使用sudo权限"
|
||
}
|
||
},
|
||
"required": ["file", "old_str", "new_str"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "file_find_in_content",
|
||
"description": "在文件内容中搜索匹配文本。用于查找文件中的特定内容或模式。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"file": {
|
||
"type": "string",
|
||
"description": "待搜索文件的绝对路径"
|
||
},
|
||
"regex": {
|
||
"type": "string",
|
||
"description": "用于匹配的正则表达式模式"
|
||
},
|
||
"sudo": {
|
||
"type": "boolean",
|
||
"description": "(可选) 是否使用sudo权限"
|
||
}
|
||
},
|
||
"required": ["file", "regex"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "file_find_by_name",
|
||
"description": "在指定目录中按名称模式查找文件。用于定位具有特定命名模式的文件。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"path": {
|
||
"type": "string",
|
||
"description": "待搜索目录的绝对路径"
|
||
},
|
||
"glob": {
|
||
"type": "string",
|
||
"description": "使用glob语法通配符的文件名模式"
|
||
}
|
||
},
|
||
"required": ["path", "glob"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "shell_exec",
|
||
"description": "在指定Shell会话中执行命令。用于运行代码、安装软件包或管理文件。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "目标Shell会话的唯一标识符"
|
||
},
|
||
"exec_dir": {
|
||
"type": "string",
|
||
"description": "命令执行的工作目录(必须使用绝对路径)"
|
||
},
|
||
"command": {
|
||
"type": "string",
|
||
"description": "待执行的Shell命令"
|
||
}
|
||
},
|
||
"required": ["id", "exec_dir", "command"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "shell_view",
|
||
"description": "查看指定Shell会话的内容。用于检查命令执行结果或监控输出。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "目标Shell会话的唯一标识符"
|
||
}
|
||
},
|
||
"required": ["id"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "shell_wait",
|
||
"description": "等待指定Shell会话中的运行进程返回。用于运行需要较长时间的命令后等待。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "目标Shell会话的唯一标识符"
|
||
},
|
||
"seconds": {
|
||
"type": "integer",
|
||
"description": "等待时长(秒)"
|
||
}
|
||
},
|
||
"required": ["id"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "shell_write_to_process",
|
||
"description": "向指定Shell会话中运行的进程写入输入。用于响应交互式命令提示。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "目标Shell会话的唯一标识符"
|
||
},
|
||
"input": {
|
||
"type": "string",
|
||
"description": "待写入进程的输入内容"
|
||
},
|
||
"press_enter": {
|
||
"type": "boolean",
|
||
"description": "是否在输入后按Enter键"
|
||
}
|
||
},
|
||
"required": ["id", "input", "press_enter"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "shell_kill_process",
|
||
"description": "终止指定Shell会话中运行的进程。用于停止长时间运行的进程或处理冻结的命令。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "目标Shell会话的唯一标识符"
|
||
}
|
||
},
|
||
"required": ["id"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "browser_view",
|
||
"description": "查看当前浏览器页面的内容。用于检查先前打开页面的最新状态。",
|
||
"parameters": {
|
||
"type": "object"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "browser_navigate",
|
||
"description": "导航浏览器至指定URL。当需要访问新页面时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"url": {
|
||
"type": "string",
|
||
"description": "待访问的完整URL(必须包含协议前缀)"
|
||
}
|
||
},
|
||
"required": ["url"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "browser_restart",
|
||
"description": "重启浏览器并导航至指定URL。当需要重置浏览器状态时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"url": {
|
||
"type": "string",
|
||
"description": "重启后待访问的完整URL(必须包含协议前缀)"
|
||
}
|
||
},
|
||
"required": ["url"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "browser_click",
|
||
"description": "点击当前浏览器页面中的元素。当需要点击页面元素时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"index": {
|
||
"type": "integer",
|
||
"description": "(可选) 待点击元素的索引号"
|
||
},
|
||
"coordinate_x": {
|
||
"type": "number",
|
||
"description": "(可选) 点击位置的X坐标"
|
||
},
|
||
"coordinate_y": {
|
||
"type": "number",
|
||
"description": "(可选) 点击位置的Y坐标"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "browser_input",
|
||
"description": "在当前浏览器页面的可编辑元素中覆写文本。当需要在输入框中填写内容时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"index": {
|
||
"type": "integer",
|
||
"description": "(可选) 待覆写文本元素的索引号"
|
||
},
|
||
"coordinate_x": {
|
||
"type": "number",
|
||
"description": "(可选) 待覆写文本元素的X坐标"
|
||
},
|
||
"coordinate_y": {
|
||
"type": "number",
|
||
"description": "(可选) 待覆写文本元素的Y坐标"
|
||
},
|
||
"text": {
|
||
"type": "string",
|
||
"description": "待覆写的完整文本内容"
|
||
},
|
||
"press_enter": {
|
||
"type": "boolean",
|
||
"description": "是否在输入后按Enter键"
|
||
}
|
||
},
|
||
"required": ["text", "press_enter"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "browser_move_mouse",
|
||
"description": "将光标移动至当前浏览器页面的指定位置。当需要模拟用户鼠标移动时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"coordinate_x": {
|
||
"type": "number",
|
||
"description": "目标光标位置的X坐标"
|
||
},
|
||
"coordinate_y": {
|
||
"type": "number",
|
||
"description": "目标光标位置的Y坐标"
|
||
}
|
||
},
|
||
"required": ["coordinate_x", "coordinate_y"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "browser_press_key",
|
||
"description": "在当前浏览器页面模拟按键操作。当需要特定键盘操作时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"key": {
|
||
"type": "string",
|
||
"description": "待模拟的按键名称(如Enter、Tab、ArrowUp),支持组合键(如Control+Enter)"
|
||
}
|
||
},
|
||
"required": ["key"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "browser_select_option",
|
||
"description": "在当前浏览器页面的下拉列表元素中选择指定选项。当需要选择下拉菜单选项时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"index": {
|
||
"type": "integer",
|
||
"description": "下拉列表元素的索引号"
|
||
},
|
||
"option": {
|
||
"type": "integer",
|
||
"description": "待选择的选项编号(从0开始)"
|
||
}
|
||
},
|
||
"required": ["index", "option"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "browser_scroll_up",
|
||
"description": "向上滚动当前浏览器页面。当需要查看上方内容或返回页面顶部时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"to_top": {
|
||
"type": "boolean",
|
||
"description": "(可选) 是否直接滚动至页面顶部而非向上滚动一屏"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "browser_scroll_down",
|
||
"description": "向下滚动当前浏览器页面。当需要查看下方内容或跳转至页面底部时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"to_bottom": {
|
||
"type": "boolean",
|
||
"description": "(可选) 是否直接滚动至页面底部而非向下滚动一屏"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "browser_console_exec",
|
||
"description": "在浏览器控制台执行JavaScript代码。当需要执行自定义脚本时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"javascript": {
|
||
"type": "string",
|
||
"description": "待执行的JavaScript代码(运行环境为浏览器控制台)"
|
||
}
|
||
},
|
||
"required": ["javascript"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "browser_console_view",
|
||
"description": "查看浏览器控制台输出。当需要检查JavaScript日志或调试页面错误时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"max_lines": {
|
||
"type": "integer",
|
||
"description": "(可选) 返回的最大日志行数"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "info_search_web",
|
||
"description": "使用搜索引擎检索网页。用于获取最新信息或查找参考资料。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"query": {
|
||
"type": "string",
|
||
"description": "Google风格的搜索查询,使用3-5个关键词"
|
||
},
|
||
"date_range": {
|
||
"type": "string",
|
||
"enum": ["all", "past_hour", "past_day", "past_week", "past_month", "past_year"],
|
||
"description": "(可选) 搜索结果的时间范围筛选"
|
||
}
|
||
},
|
||
"required": ["query"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "deploy_expose_port",
|
||
"description": "暴露指定本地端口以供临时公开访问。当需要为服务提供临时公开访问时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"port": {
|
||
"type": "integer",
|
||
"description": "待暴露的本地端口号"
|
||
}
|
||
},
|
||
"required": ["port"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "deploy_apply_deployment",
|
||
"description": "将网站或应用程序部署至公开生产环境。当需要部署或更新静态网站/应用程序时使用。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"type": {
|
||
"type": "string",
|
||
"enum": ["static", "nextjs"],
|
||
"description": "待部署网站/应用程序的类型"
|
||
},
|
||
"local_dir": {
|
||
"type": "string",
|
||
"description": "待部署本地目录的绝对路径"
|
||
}
|
||
},
|
||
"required": ["type", "local_dir"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "make_manus_page",
|
||
"description": "从本地MDX文件创建Manus页面。",
|
||
"parameters": {
|
||
"type": "object",
|
||
"properties": {
|
||
"mdx_file_path": {
|
||
"type": "string",
|
||
"description": "源MDX文件的绝对路径"
|
||
}
|
||
},
|
||
"required": ["mdx_file_path"]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"type": "function",
|
||
"function": {
|
||
"name": "idle",
|
||
"description": "特殊工具,表示已完成所有任务并即将进入空闲状态。",
|
||
"parameters": {
|
||
"type": "object"
|
||
}
|
||
}
|
||
}
|
||
] |