arcade-mcp/toolkits/github_api/arcade_github_api/wrapper_tools/UpdateGithubGist.json
jottakka de742ff4f1
[MOAR][Asana][Github] Adding GitHub and Asana starter toolkits (#663)
Co-authored-by: Francisco Liberal <francisco@arcade.dev>
2025-10-30 18:21:34 -03:00

184 lines
8.7 KiB
JSON

{
"name": "UpdateGithubGist",
"fully_qualified_name": "GithubApi.UpdateGithubGist@0.1.0",
"description": "Update a GitHub gist's description and files.\n\nUse this tool to change the description, update, delete, or rename files in an existing GitHub gist. Unchanged files remain the same.",
"toolkit": {
"name": "ArcadeGithubApi",
"description": null,
"version": "0.1.0"
},
"input": {
"parameters": [
{
"name": "gist_unique_identifier",
"required": true,
"description": "The unique identifier of the GitHub gist to be updated.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The unique identifier of the gist."
},
"inferrable": true,
"http_endpoint_parameter_name": "gist_id"
},
{
"name": "gist_update_data",
"required": true,
"description": "JSON object specifying the gist description and file changes. Include 'description' to update the gist's description. Use 'files' to update, rename, or delete files, with keys as filenames. Set a file to null to delete it.",
"value_schema": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"description": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The description of the gist."
},
"files": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`."
}
},
"inner_properties": null,
"description": ""
},
"inferrable": true,
"http_endpoint_parameter_name": "requestBody"
}
]
},
"output": {
"description": "Response from the API endpoint 'gists/update'.",
"available_modes": [
"value",
"error",
"null"
],
"value_schema": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
}
},
"requirements": {
"authorization": {
"provider_id": "arcade-github",
"provider_type": "oauth2",
"id": null,
"oauth2": null
},
"secrets": [
{
"key": "GIT_SERVER_URL"
}
],
"metadata": null
},
"deprecation_message": null,
"metadata": {
"object_type": "api_wrapper_tool",
"version": "1.1.0",
"description": "Tools that enable LLMs to interact directly with the GitHub API."
},
"http_endpoint": {
"metadata": {
"object_type": "http_endpoint",
"version": "1.2.0",
"description": ""
},
"url": "{git_server_url}/api/v3/gists/{gist_id}",
"http_method": "PATCH",
"headers": {},
"parameters": [
{
"name": "gist_id",
"tool_parameter_name": "gist_unique_identifier",
"description": "The unique identifier of the gist.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The unique identifier of the gist."
},
"accepted_as": "path",
"required": true,
"deprecated": false,
"default": null,
"documentation_urls": []
},
{
"name": "requestBody",
"tool_parameter_name": "gist_update_data",
"description": "",
"value_schema": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"description": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The description of the gist."
},
"files": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`."
}
},
"inner_properties": null,
"description": ""
},
"accepted_as": "body",
"required": true,
"deprecated": false,
"default": null,
"documentation_urls": []
}
],
"documentation_urls": [],
"secrets": [
{
"arcade_key": "GIT_SERVER_URL",
"parameter_name": "git_server_url",
"accepted_as": "path",
"formatted_value": null,
"description": "",
"is_auth_token": false
},
{
"arcade_key": "auth_token",
"parameter_name": "Authorization",
"accepted_as": "header",
"formatted_value": "Bearer {authorization}",
"description": "The OAuth token to use for authentication.",
"is_auth_token": true
}
],
"request_body_spec": "{\n \"content\": {\n \"application/json\": {\n \"examples\": {\n \"deleteFile\": {\n \"summary\": \"Deleting a gist file\",\n \"value\": {\n \"files\": {\n \"hello.py\": null\n }\n }\n },\n \"renameFile\": {\n \"summary\": \"Renaming a gist file\",\n \"value\": {\n \"files\": {\n \"hello.py\": {\n \"filename\": \"goodbye.py\"\n }\n }\n }\n },\n \"updateGist\": {\n \"summary\": \"Updating a gist\",\n \"value\": {\n \"description\": \"An updated gist description\",\n \"files\": {\n \"README.md\": {\n \"content\": \"Hello World from GitHub\"\n }\n }\n }\n }\n },\n \"schema\": {\n \"anyOf\": [\n {\n \"required\": [\n \"description\"\n ]\n },\n {\n \"required\": [\n \"files\"\n ]\n }\n ],\n \"nullable\": true,\n \"properties\": {\n \"description\": {\n \"description\": \"The description of the gist.\",\n \"example\": \"Example Ruby script\",\n \"type\": \"string\"\n },\n \"files\": {\n \"additionalProperties\": {\n \"anyOf\": [\n {\n \"required\": [\n \"content\"\n ]\n },\n {\n \"required\": [\n \"filename\"\n ]\n },\n {\n \"maxProperties\": 0,\n \"type\": \"object\"\n }\n ],\n \"nullable\": true,\n \"properties\": {\n \"content\": {\n \"description\": \"The new content of the file.\",\n \"type\": \"string\"\n },\n \"filename\": {\n \"description\": \"The new filename for the file.\",\n \"nullable\": true,\n \"type\": \"string\"\n }\n },\n \"type\": \"object\"\n },\n \"description\": \"The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\\n(including extension) of the targeted gist file. For example: `hello.py`.\\n\\nTo delete a file, set the whole file to null. For example: `hello.py : null`.\",\n \"example\": {\n \"hello.rb\": {\n \"content\": \"blah\",\n \"filename\": \"goodbye.rb\"\n }\n },\n \"type\": \"object\"\n }\n },\n \"type\": \"object\"\n }\n }\n },\n \"required\": true\n}",
"use_request_body_schema_mode": true,
"validate_request_body_schema": true
}
}