filesRemoteShare
Share a remote file into a channel.
Details
- Method:
GET - Path:
/files.remote.share - Operation ID:
files_remote_share
Parameters
{
"token": {
"description": "Authentication token. Requires scope: `remote_files:share`",
"required": false,
"location": "query",
"type": "string"
},
"file": {
"description": "Specify a file registered with Slack by providing its ID. Either this field or `external_id` or both are required.",
"required": false,
"location": "query",
"type": "string"
},
"external_id": {
"description": "The globally unique identifier (GUID) for the file, as set by the app registering the file with Slack. Either this field or `file` or both are required.",
"required": false,
"location": "query",
"type": "string"
},
"channels": {
"description": "Comma-separated list of channel IDs where the file will be shared.",
"required": false,
"location": "query",
"type": "string"
}
}Response Schema
{
"additionalProperties": true,
"description": "This method either only returns a brief _OK_ response or a verbose schema is not available for this method.",
"properties": {
"ok": {
"enum": [
true
],
"title": "default success response",
"type": "boolean"
}
},
"required": [
"ok"
],
"title": "Default success template",
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('slack')
# Call this tool
result = await agent.call_tool('filesRemoteShare', {
# Add required parameters here
})