Files
Harry 0be17fa1a7 feat: update tool management and configuration handling
- Changed the tool fetching mechanism to handle missing tools more effectively by introducing a batch fetch method.
- Removed the pull command to streamline the CLI, focusing on tool references and their management.
- Enhanced the list command to display available tool references and their statuses, improving user visibility into tool availability.
- Updated the configuration structure to include new fields for tool references and their enabled status.

This update improves the overall tool management experience in the CLI, making it more efficient and user-friendly.
2026-01-30 03:30:01 +08:00

455 lines
16 KiB
JSON

{
"env": {
"files_url": "https://difyai.ngrok.dev",
"cli_api_url": "https://difyai.ngrok.dev",
"cli_api_session_id": "4e027768-d6cd-48f1-a9d9-60986ed1d80e",
"cli_api_secret": "lOYJw5PUFPIqCwZZzlkEKRIyrg4V5Do0mn5Ahbv1pqg"
},
"tools": [
{
"provider_type": "builtin",
"identity": {
"author": "CharlieWei",
"name": "github_repositories",
"label": {
"en_US": "Search Repositories",
"ja_JP": "Search Repositories",
"zh_Hans": "仓库搜索",
"pt_BR": "Pesquisar Repositórios"
},
"provider": "langgenius/github/github"
},
"description": {
"human": {
"en_US": "Search the GitHub repository to retrieve the open source projects you need",
"ja_JP": "Search the GitHub repository to retrieve the open source projects you need",
"zh_Hans": "搜索GitHub仓库,检索你需要的开源项目。",
"pt_BR": "Pesquise o repositório do GitHub para recuperar os projetos de código aberto necessários."
},
"llm": "A tool when you wants to search for popular warehouses or open source projects for any keyword. format query condition like \"keywords+language:js\", language can be other dev languages."
},
"parameters": [
{
"name": "query",
"label": {
"en_US": "query",
"ja_JP": "query",
"zh_Hans": "关键字",
"pt_BR": "consulta"
},
"human_description": {
"en_US": "You want to find the project development language, keywords, For example. Find 10 Python developed PDF document parsing projects.",
"ja_JP": "You want to find the project development language, keywords, For example. Find 10 Python developed PDF document parsing projects.",
"zh_Hans": "你想要找的项目开发语言、关键字,如:找10个Python开发的PDF文档解析项目。",
"pt_BR": "Você deseja encontrar a linguagem de desenvolvimento do projeto, palavras-chave, Por exemplo. Encontre 10 projetos de análise de documentos PDF desenvolvidos em Python."
},
"llm_description": "The query of you want to search, format query condition like \"keywords+language:js\", language can be other dev languages.",
"type": "string",
"required": true,
"default": null,
"options": null
},
{
"name": "top_n",
"label": {
"en_US": "Top N",
"ja_JP": "Top N",
"zh_Hans": "Top N",
"pt_BR": "Topo N"
},
"human_description": {
"en_US": "Number of records returned by sorting based on stars. 5 is returned by default.",
"ja_JP": "Number of records returned by sorting based on stars. 5 is returned by default.",
"zh_Hans": "基于stars排序返回的记录数, 默认返回5条。",
"pt_BR": "Número de registros retornados por classificação com base em estrelas. 5 é retornado por padrão."
},
"llm_description": "Extract the first N records from the returned result.",
"type": "number",
"required": true,
"default": 5,
"options": null
}
],
"credential_type": "",
"credential_id": "",
"enabled": true
},
{
"provider_type": "builtin",
"identity": {
"author": "langgenius",
"name": "github_merge_pull",
"label": {
"en_US": "Merge Pull Request",
"ja_JP": "Merge Pull Request",
"zh_Hans": "合并PR",
"pt_BR": "Mesclar Pull Request"
},
"provider": "langgenius/github/github"
},
"description": {
"human": {
"en_US": "Merge a pull request in a GitHub repository",
"ja_JP": "Merge a pull request in a GitHub repository",
"zh_Hans": "合并GitHub仓库中的Pull Request",
"pt_BR": "Mesclar um pull request em um repositório do GitHub"
},
"llm": "A tool to merge a pull request with options for merge method (merge, squash, or rebase) and commit message"
},
"parameters": [
{
"name": "owner",
"label": {
"en_US": "Owner",
"ja_JP": "Owner",
"zh_Hans": "所有者",
"pt_BR": "Proprietário"
},
"human_description": {
"en_US": "The account owner of the repository. The name is not case sensitive.",
"ja_JP": "The account owner of the repository. The name is not case sensitive.",
"zh_Hans": "仓库的账户所有者。名称不区分大小写。",
"pt_BR": "O proprietário da conta do repositório. O nome não diferencia maiúsculas de minúsculas."
},
"llm_description": "The account owner of the repository. The name is not case sensitive.",
"type": "string",
"required": true,
"default": null,
"options": null
},
{
"name": "repo",
"label": {
"en_US": "Repository",
"ja_JP": "Repository",
"zh_Hans": "仓库",
"pt_BR": "Repositório"
},
"human_description": {
"en_US": "The name of the repository without the .git extension. The name is not case sensitive.",
"ja_JP": "The name of the repository without the .git extension. The name is not case sensitive.",
"zh_Hans": "仓库名称不带.git扩展名。名称不区分大小写。",
"pt_BR": "O nome do repositório sem a extensão .git. O nome não diferencia maiúsculas de minúsculas."
},
"llm_description": "The name of the repository without the .git extension. The name is not case sensitive.",
"type": "string",
"required": true,
"default": null,
"options": null
},
{
"name": "pull_number",
"label": {
"en_US": "Pull Request Number",
"ja_JP": "Pull Request Number",
"zh_Hans": "PR编号",
"pt_BR": "Número do Pull Request"
},
"human_description": {
"en_US": "The number that identifies the pull request.",
"ja_JP": "The number that identifies the pull request.",
"zh_Hans": "Pull Request的编号。",
"pt_BR": "O número que identifica o pull request."
},
"llm_description": "The number that identifies the pull request.",
"type": "number",
"required": true,
"default": null,
"options": null
},
{
"name": "merge_method",
"label": {
"en_US": "Merge Method",
"ja_JP": "Merge Method",
"zh_Hans": "合并方法",
"pt_BR": "Método de Mesclagem"
},
"human_description": {
"en_US": "The merge method to use. Can be merge, squash, or rebase.",
"ja_JP": "The merge method to use. Can be merge, squash, or rebase.",
"zh_Hans": "合并方法。可以是 merge、squash 或 rebase。",
"pt_BR": "O método de mesclagem a ser usado. Pode ser merge, squash ou rebase."
},
"llm_description": "The merge method to use: 'merge' creates a merge commit, 'squash' squashes all commits into one, 'rebase' rebases commits onto the base branch.",
"type": "string",
"required": false,
"default": "merge",
"options": null
},
{
"name": "commit_title",
"label": {
"en_US": "Commit Title",
"ja_JP": "Commit Title",
"zh_Hans": "提交标题",
"pt_BR": "Título do Commit"
},
"human_description": {
"en_US": "Title for the automatic merge commit message.",
"ja_JP": "Title for the automatic merge commit message.",
"zh_Hans": "合并提交的标题。",
"pt_BR": "Título para a mensagem do commit de mesclagem automática."
},
"llm_description": "Title for the automatic merge commit message. If not provided, GitHub will generate a default title.",
"type": "string",
"required": false,
"default": null,
"options": null
},
{
"name": "commit_message",
"label": {
"en_US": "Commit Message",
"ja_JP": "Commit Message",
"zh_Hans": "提交消息",
"pt_BR": "Mensagem do Commit"
},
"human_description": {
"en_US": "Extra detail to append to automatic commit message.",
"ja_JP": "Extra detail to append to automatic commit message.",
"zh_Hans": "附加到合并提交消息的额外详情。",
"pt_BR": "Detalhe extra para anexar à mensagem de commit automática."
},
"llm_description": "Extra detail to append to automatic commit message.",
"type": "string",
"required": false,
"default": null,
"options": null
},
{
"name": "sha",
"label": {
"en_US": "SHA",
"ja_JP": "SHA",
"zh_Hans": "SHA",
"pt_BR": "SHA"
},
"human_description": {
"en_US": "SHA that pull request head must match to allow merge.",
"ja_JP": "SHA that pull request head must match to allow merge.",
"zh_Hans": "PR头部必须匹配的SHA值才能允许合并。",
"pt_BR": "SHA que o head do pull request deve corresponder para permitir a mesclagem."
},
"llm_description": "SHA that pull request head must match to allow merge. This is used to prevent merging if the PR has been updated since you last checked.",
"type": "string",
"required": false,
"default": null,
"options": null
}
],
"credential_type": "",
"credential_id": "",
"enabled": true
}
],
"tool_references": [
{
"id": "f3144f07-8679-4d7a-aecb-dcebb8a69e41",
"tool_type": "builtin",
"tool_name": "github_repositories",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"top_n": 5
}
},
{
"id": "fa1b8f61-0a6f-4760-889a-6887ea5f263c",
"tool_type": "builtin",
"tool_name": "github_repository_readme",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {}
},
{
"id": "ce05deef-fcef-4051-86bb-434d367bfca5",
"tool_type": "builtin",
"tool_name": "github_repository_info",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {}
},
{
"id": "fd6f807f-2417-44ba-872e-787267b18118",
"tool_type": "builtin",
"tool_name": "github_repository_issues",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"direction": "desc",
"per_page": 10,
"sort": "created",
"state": "open"
}
},
{
"id": "ca25b386-e70b-48df-bc92-e5a9a5ab520b",
"tool_type": "builtin",
"tool_name": "github_repository_pulls",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"direction": "desc",
"per_page": 10,
"sort": "created",
"state": "open"
}
},
{
"id": "476e18f2-c219-4e3f-9433-2ce4a5877572",
"tool_type": "builtin",
"tool_name": "github_repository_releases",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"per_page": 10
}
},
{
"id": "6760d0d1-6d05-4f0e-8626-9b11f05eb22a",
"tool_type": "builtin",
"tool_name": "github_repository_contributors",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"per_page": 10
}
},
{
"id": "50fbd58b-fe97-4e05-9456-bb6b24c08cb1",
"tool_type": "builtin",
"tool_name": "github_repository_commits",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"per_page": 10
}
},
{
"id": "dd58ee7b-e65d-4e86-9a1f-ac012773fa7b",
"tool_type": "builtin",
"tool_name": "github_repository_contents",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {}
},
{
"id": "aa0cd7d7-909f-4278-bfbd-6949c167d5cc",
"tool_type": "builtin",
"tool_name": "github_user_info",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {}
},
{
"id": "a0881c12-fdbe-4d0e-91fd-daa92307e7e1",
"tool_type": "builtin",
"tool_name": "github_user_repos",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"direction": "desc",
"per_page": 10,
"sort": "updated",
"type": "all"
}
},
{
"id": "bee86380-383b-4b6f-8035-e43fb2a90254",
"tool_type": "builtin",
"tool_name": "github_search_code",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"order": "desc",
"per_page": 10
}
},
{
"id": "32c04f68-09da-462b-ba15-a39a9ca96f9b",
"tool_type": "builtin",
"tool_name": "github_pull_detail",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {}
},
{
"id": "e2f02e38-320b-4252-9702-3b2f4a99a973",
"tool_type": "builtin",
"tool_name": "github_pull_files",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"include_patch": false,
"per_page": 30
}
},
{
"id": "7726fbc8-203e-4d09-a311-fa782e82dd23",
"tool_type": "builtin",
"tool_name": "github_pull_comments",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"comment_type": "all",
"per_page": 30
}
},
{
"id": "c69d9885-69f2-4113-ac44-d8979d7bebb3",
"tool_type": "builtin",
"tool_name": "github_pull_reviews",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"per_page": 30
}
},
{
"id": "12c04c9e-5bd6-4c5f-8d6c-357368f9a4c5",
"tool_type": "builtin",
"tool_name": "github_create_pull",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"draft": false,
"maintainer_can_modify": true
}
},
{
"id": "32a8c726-158c-4a8b-b07f-220bdd9c76bf",
"tool_type": "builtin",
"tool_name": "github_merge_pull",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {
"merge_method": "merge"
}
},
{
"id": "46410f54-574b-4a7f-b8e7-e7251557382c",
"tool_type": "builtin",
"tool_name": "github_update_pull",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {}
},
{
"id": "a79159bf-6821-49b7-916b-57099ab1b3c7",
"tool_type": "builtin",
"tool_name": "github_create_pull_review",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {}
},
{
"id": "51e1b414-097d-49ed-9c53-275cf68c8e2e",
"tool_type": "builtin",
"tool_name": "github_issue_comment",
"tool_provider": "langgenius/github/github",
"credential_id": null,
"default_value": {}
}
]
}