arcade-mcp/toolkits/slack_api/arcade_slack_api/wrapper_tools/SetSlackProfilePhoto.json
2025-09-23 13:48:21 -03:00

205 lines
6.1 KiB
JSON

{
"name": "SetSlackProfilePhoto",
"fully_qualified_name": "SlackApi.SetSlackProfilePhoto@0.1.0",
"description": "Set the user's profile photo on Slack.\n\nUse this tool to update a user's profile photo on Slack. This requires the 'users.profile:write' OAuth scope, allowing changes to profile information including the profile photo.",
"toolkit": {
"name": "ArcadeSlackApi",
"description": null,
"version": "0.1.0"
},
"input": {
"parameters": [
{
"name": "crop_box_size",
"required": false,
"description": "The size of the square crop box for the profile photo in pixels. Specify the width and height, which are the same value for a square.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
},
"inferrable": true,
"http_endpoint_parameter_name": "crop_w"
},
{
"name": "crop_box_x_coordinate",
"required": false,
"description": "X coordinate of the top-left corner of the crop box for the profile photo.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
},
"inferrable": true,
"http_endpoint_parameter_name": "crop_x"
},
{
"name": "crop_y_coordinate",
"required": false,
"description": "Y coordinate of the top-left corner of the crop box for the user's profile photo on Slack. This determines where the cropping of the image will start on the vertical axis.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
},
"inferrable": true,
"http_endpoint_parameter_name": "crop_y"
},
{
"name": "profile_photo_image",
"required": false,
"description": "The image file to set as the Slack profile photo. Provide image data directly with the correct content type (e.g., image/jpeg, image/png).",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
},
"inferrable": true,
"http_endpoint_parameter_name": "image"
}
]
},
"output": {
"description": "Response from the API endpoint 'users.setPhoto'.",
"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-slack",
"provider_type": "oauth2",
"id": null,
"oauth2": {
"scopes": [
"users.profile:write"
]
}
},
"secrets": null,
"metadata": null
},
"deprecation_message": null,
"metadata": {
"object_type": "api_wrapper_tool",
"version": "1.0.0",
"description": "Arcade Wrapper Tools enabling LLMs to interact with low-level Slack API endpoints."
},
"http_endpoint": {
"metadata": {
"object_type": "http_endpoint",
"version": "1.0.0",
"description": ""
},
"url": "https://slack.com/api/users.setPhoto",
"http_method": "POST",
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"parameters": [
{
"name": "crop_w",
"tool_parameter_name": "crop_box_size",
"description": "Width/height of crop box (always square)",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
},
"accepted_as": "body",
"required": false,
"deprecated": false,
"documentation_urls": []
},
{
"name": "crop_x",
"tool_parameter_name": "crop_box_x_coordinate",
"description": "X coordinate of top-left corner of crop box",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
},
"accepted_as": "body",
"required": false,
"deprecated": false,
"documentation_urls": []
},
{
"name": "crop_y",
"tool_parameter_name": "crop_y_coordinate",
"description": "Y coordinate of top-left corner of crop box",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
},
"accepted_as": "body",
"required": false,
"deprecated": false,
"documentation_urls": []
},
{
"name": "image",
"tool_parameter_name": "profile_photo_image",
"description": "File contents via `multipart/form-data`.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
},
"accepted_as": "body",
"required": false,
"deprecated": false,
"documentation_urls": []
}
],
"documentation_urls": [
"https://docs.slack.dev/reference/methods/users.setphoto"
],
"secrets": [
{
"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
}
]
}
}