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

249 lines
8.2 KiB
JSON

{
"name": "UpdateTeamDiscussion",
"fully_qualified_name": "GithubApi.UpdateTeamDiscussion@0.1.0",
"description": "Edits the title and body of a team discussion post.\n\nUse this tool to update the title and content of a discussion in a GitHub team within an organization. Only the specified fields will be changed. Requires OAuth tokens with `write:discussion` scope.",
"toolkit": {
"name": "ArcadeGithubApi",
"description": null,
"version": "0.1.0"
},
"input": {
"parameters": [
{
"name": "organization_name",
"required": true,
"description": "The name of the organization. It is not case sensitive and uniquely identifies the organization on GitHub.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The organization name. The name is not case sensitive."
},
"inferrable": true,
"http_endpoint_parameter_name": "org"
},
{
"name": "team_slug",
"required": true,
"description": "Provide the slug (URL-friendly version) of the team's name. Case sensitivity is ignored.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The slug of the team name."
},
"inferrable": true,
"http_endpoint_parameter_name": "team_slug"
},
{
"name": "discussion_id",
"required": true,
"description": "The unique number identifying the discussion to be updated.",
"value_schema": {
"val_type": "integer",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The number that identifies the discussion."
},
"inferrable": true,
"http_endpoint_parameter_name": "discussion_number"
},
{
"name": "discussion_body_text",
"required": false,
"description": "The updated body text of the discussion post. Provide the new content you want for the discussion.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The discussion post's body text."
},
"inferrable": true,
"http_endpoint_parameter_name": "body"
},
{
"name": "discussion_title",
"required": false,
"description": "The new title for the discussion post. Only the provided title will be updated.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The discussion post's title."
},
"inferrable": true,
"http_endpoint_parameter_name": "title"
}
]
},
"output": {
"description": "Response from the API endpoint 'teams/update-discussion-in-org'.",
"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/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
"http_method": "PATCH",
"headers": {},
"parameters": [
{
"name": "org",
"tool_parameter_name": "organization_name",
"description": "The organization name. The name is not case sensitive.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The organization name. The name is not case sensitive."
},
"accepted_as": "path",
"required": true,
"deprecated": false,
"default": null,
"documentation_urls": []
},
{
"name": "team_slug",
"tool_parameter_name": "team_slug",
"description": "The slug of the team name.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The slug of the team name."
},
"accepted_as": "path",
"required": true,
"deprecated": false,
"default": null,
"documentation_urls": []
},
{
"name": "discussion_number",
"tool_parameter_name": "discussion_id",
"description": "The number that identifies the discussion.",
"value_schema": {
"val_type": "integer",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The number that identifies the discussion."
},
"accepted_as": "path",
"required": true,
"deprecated": false,
"default": null,
"documentation_urls": []
},
{
"name": "body",
"tool_parameter_name": "discussion_body_text",
"description": "The discussion post's body text.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The discussion post's body text."
},
"accepted_as": "body",
"required": false,
"deprecated": false,
"default": null,
"documentation_urls": []
},
{
"name": "title",
"tool_parameter_name": "discussion_title",
"description": "The discussion post's title.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The discussion post's title."
},
"accepted_as": "body",
"required": false,
"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 \"value\": {\n \"title\": \"Welcome to our first team post\"\n }\n }\n },\n \"schema\": {\n \"properties\": {\n \"body\": {\n \"description\": \"The discussion post's body text.\",\n \"type\": \"string\"\n },\n \"title\": {\n \"description\": \"The discussion post's title.\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\"\n }\n }\n },\n \"required\": false\n}",
"use_request_body_schema_mode": false,
"validate_request_body_schema": false
}
}