Home / Servers / Asana API / create_attachment_for_object

Upload an attachment

An MCP tool from the Asana API server, hosted on mcp.hjlabs.in.

Upload an attachment Required scope: attachments:write Upload an attachment. This method uploads an attachment on an object and returns the compact record for the created attachment object. This is possible by either… [POST /attachments]

Name on the gateway: asana_api__create_attachment_for_object · may change things.

Parameters

NameTypeDescription
opt_prettybooleanProvides “pretty” output. Provides the response in a “pretty” format. In the…
opt_fieldsarrayThis endpoint returns a resource which excludes some properties by default. To…
resource_subtypeasana | externalThe type of the attachment. Must be one of the given values. If not specified…
filestringRequired for asana attachments.
parent requiredstringRequired identifier of the parent task, project, or project_brief, as a string.
urlstringThe URL of the external resource being attached. Required for attachments of…
namestringThe name of the external resource being attached. Required for attachments of…
connect_to_appboolean*Optional*. Only relevant for external attachments with a parent task. A…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "asana_api__create_attachment_for_object",
  "arguments": {
    "parent": "…"
  }
}

Or connect the Asana API server directly, which lists 270 tools including this one:

Run in your terminal
claude mcp add --transport http hj-asana-api https://mcp.hjlabs.in/mcp/asana-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the upload an attachment tool with opt_pretty set to ….

More from Asana API