Open Context Protocol is live! 🚀 Read the launch post
getAttachmentThumbnail

getAttachmentThumbnail

Get attachment thumbnail

Details

  • Method: GET
  • Path: /rest/api/3/attachment/thumbnail/{id}
  • Operation ID: getAttachmentThumbnail

Parameters

{
  "id": {
    "description": "The ID of the attachment.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "redirect": {
    "description": "Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to `false` to avoid making multiple requests to download the attachment.",
    "required": false,
    "location": "query",
    "type": "boolean"
  },
  "fallbackToDefault": {
    "description": "Whether a default thumbnail is returned when the requested thumbnail is not found.",
    "required": false,
    "location": "query",
    "type": "boolean"
  },
  "width": {
    "description": "The maximum width to scale the thumbnail to.",
    "required": false,
    "location": "query",
    "type": "integer",
    "format": "int32"
  },
  "height": {
    "description": "The maximum height to scale the thumbnail to.",
    "required": false,
    "location": "query",
    "type": "integer",
    "format": "int32"
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('jira')

# Call this tool
result = await agent.call_tool('getAttachmentThumbnail', {
    # Add required parameters here
})