arcade-mcp/toolkits/github_api/arcade_github_api/wrapper_tools/CreateGist.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

167 lines
6.9 KiB
JSON

{
"name": "CreateGist",
"fully_qualified_name": "GithubApi.CreateGist@0.1.0",
"description": "Create a new gist with one or more files on GitHub.\n\nUse this tool to add a new gist containing one or more code files on GitHub. Avoid naming files with the 'gistfile' format followed by a number, as it may conflict with GitHub's internal naming scheme.",
"toolkit": {
"name": "ArcadeGithubApi",
"description": null,
"version": "0.1.0"
},
"input": {
"parameters": [
{
"name": "gist_content",
"required": true,
"description": "A JSON object containing 'description' (string), 'files' (object with filenames as keys and content as values), and 'public' (boolean) to define the gist.",
"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": "Description of the gist"
},
"files": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "Names and content for the files that make up the gist"
},
"public": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
}
},
"inner_properties": null,
"description": ""
},
"inferrable": true,
"http_endpoint_parameter_name": "requestBody"
}
]
},
"output": {
"description": "Response from the API endpoint 'gists/create'.",
"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",
"http_method": "POST",
"headers": {},
"parameters": [
{
"name": "requestBody",
"tool_parameter_name": "gist_content",
"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": "Description of the gist"
},
"files": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "Names and content for the files that make up the gist"
},
"public": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": 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 \"default\": {\n \"summary\": \"Creating a gist\",\n \"value\": {\n \"description\": \"Example of a gist\",\n \"files\": {\n \"README.md\": {\n \"content\": \"Hello World\"\n }\n },\n \"public\": false\n }\n }\n },\n \"schema\": {\n \"properties\": {\n \"description\": {\n \"description\": \"Description of the gist\",\n \"example\": \"Example Ruby script\",\n \"type\": \"string\"\n },\n \"files\": {\n \"additionalProperties\": {\n \"properties\": {\n \"content\": {\n \"description\": \"Content of the file\",\n \"readOnly\": false,\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"content\"\n ],\n \"type\": \"object\"\n },\n \"description\": \"Names and content for the files that make up the gist\",\n \"example\": {\n \"hello.rb\": {\n \"content\": \"puts \\\"Hello, World!\\\"\"\n }\n },\n \"type\": \"object\"\n },\n \"public\": {\n \"oneOf\": [\n {\n \"default\": false,\n \"description\": \"Flag indicating whether the gist is public\",\n \"example\": true,\n \"type\": \"boolean\"\n },\n {\n \"default\": \"false\",\n \"enum\": [\n \"true\",\n \"false\"\n ],\n \"example\": \"true\",\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"files\"\n ],\n \"type\": \"object\"\n }\n }\n },\n \"required\": true\n}",
"use_request_body_schema_mode": true,
"validate_request_body_schema": true
}
}