Open Context Protocol is live! 🚀 Read the launch post

filesRemoteInfo

Retrieve information about a remote file added to Slack

Details

  • Method: GET
  • Path: /files.remote.info
  • Operation ID: files_remote_info

Parameters

{
  "token": {
    "description": "Authentication token. Requires scope: `remote_files:read`",
    "required": false,
    "location": "query",
    "type": "string"
  },
  "file": {
    "description": "Specify a file by providing its ID.",
    "required": false,
    "location": "query",
    "type": "string"
  },
  "external_id": {
    "description": "Creator defined GUID for the file.",
    "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('filesRemoteInfo', {
    # Add required parameters here
})