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
| Name | Type | Description |
|---|---|---|
opt_pretty | boolean | Provides “pretty” output. Provides the response in a “pretty” format. In the… |
opt_fields | array | This endpoint returns a resource which excludes some properties by default. To… |
resource_subtype | asana | external | The type of the attachment. Must be one of the given values. If not specified… |
file | string | Required for asana attachments. |
parent required | string | Required identifier of the parent task, project, or project_brief, as a string. |
url | string | The URL of the external resource being attached. Required for attachments of… |
name | string | The name of the external resource being attached. Required for attachments of… |
connect_to_app | boolean | *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:
{
"name": "asana_api__create_attachment_for_object",
"arguments": {
"parent": "…"
}
}Or connect the Asana API server directly, which lists 270 tools including this one:
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 ….