Official plugins
While large language models have powerful natural language processing capabilities, they may need additional features for specific tasks, such as performing web searches or processing images. Model Studio provides a range of official plugins. You can select plugins to enhance the model's capabilities and expand its use cases.
First-time access to the plugins page
If your Alibaba Cloud account or RAM user (sub-account) does not have the AliyunServiceRoleForSFMAccessCloudAPI role, you cannot access plugins. Follow these instructions to grant the required permissions.
Alibaba Cloud account
If you log in to Model Studio with an Alibaba Cloud account, go to the Plugins page, select the checkbox to agree to the terms, and click Authorize and Enter.
The authorization page creates the service-linked role AliyunServiceRoleForSFMAccessCloudAPI, which is associated with the AliyunServiceRolePolicyForSFMAccessCloudAPI policy. This role authorizes Model Studio to access your Alibaba Cloud Marketplace products and make API calls based on the plugin configuration.
RAM user (sub-account)
If you log in to Model Studio with a RAM user (sub-account), go to the Plugins page, select the checkbox to agree to the terms, and click Authorize and Enter. The following prompt appears:
A dialog box for the Cloud Marketplace service-linked role appears, displaying error code 140052 and the service-linked role name AliyunServiceRoleForSFMAccessCloudAPI.
This error occurs because the RAM user does not have permission to create a service-linked role. Follow the steps below to grant this permission to the RAM user. After you grant this permission, the RAM user can access the Plug-in page.
-
Grant the RAM user the permission to create a service-linked role.
-
Log in to the RAM console with your Alibaba Cloud account.
-
In the left-side navigation pane, choose Permissions > Policy.
-
Click Create Policy.
-
On the Script Editor tab, enter the following content in the
Effect,Action,Resource, andConditionfields.{ "Action": [ "ram:CreateServiceLinkedRole" ], "Resource": "*", "Effect": "Allow", "Condition": { "StringEquals": { "ram:ServiceName": "cloundapi-access.sfm.aliyuncs.com" } } } -
Click OK.
-
Set a name for the policy and click OK.
For example, enter the name
service-linked role. -
In the left-side navigation pane, choose .
-
Find the RAM user to authorize and, in the Actions column, click Add Permission.
-
Select the policy that you created and click OK.
The RAM user can now create service-linked roles.
From the policy type drop-down list, select Custom Policy to filter the list. Then, find and select your target policy.
-
-
Return to the Plugins page, select the checkbox to agree to the terms, and click Authorize and Enter.
Official plugins
The Component Market provides pre-built official plugins from Model Studio. You can call them directly without configuring their input and output parameters.
|
Plugin name |
Tool ID |
Description |
Billing |
|
code_interpreter |
Enables the model to run Python code for tasks like mathematical calculations, data analysis, visualization, and data processing. |
Free |
|
|
calculator |
Lets the model perform complex mathematical calculations, such as "12313 * 13232". |
Free |
|
|
text_to_image |
Lets the model generate images from text, such as "Draw a smiling dog." |
Free for a limited time. Activation is required. |
Call official plugins
Step 1. Authorize the workspace (if required). You must authorize an official plugin before you can use it in a sub-workspace. This step is not required for the default workspace.
-
Go to the Plugins page, find the target plugin, and click View Details.
-
Click Authorization, select the sub-workspace to authorize, and click OK to complete the authorization.

Step 2. Call a plugin.
Call a plugin
-
Method 1: From the Plug-in page, add a tool to an agent application.
An official plugin can only be added to an Agent Application in the same workspace.
-
Find the target plugin and click Add to Agent.
-
Select the tool and click Next.
-
Select an agent application and click Confirm Add.
-
On the application details page, the tool now appears automatically.
You can also click Select Plug-in to add more tools. You can add up to 10 tools. The agent application selects and calls one or more tools based on the input.

-
Test the tool by interacting with the model in the input box.
-
After testing, publish the application.
-
-
Method 2: Go to the Apps page. In a specific agent or workflow application, add the plugin, test its functionality, and then Publish the application. For more information, see Agent application plugin capabilities and Workflow application plugin node.
Get the tool ID
A tool ID identifies a specific tool. You must provide the correct tool ID when calling a tool by using an API.
-
On the Plug-in page, find the target plugin and click View Details.
-
Under Plug-in Tool, get the tool ID.
In this example, the tool ID is
calculator.
Related documentation
In addition to official plugins, Model Studio supports custom plugins. For more information, see Custom plugins.





