Tools
Add a tool to a Skill
POST /v1/agents/{agentId}/skills/{skillId}/tools
Use the agent ID and the Skill ID returned when you create a Skill. Both must belong to the organization associated with your PD access token. Delegated OAuth tokens need pd:write.
Choose the tool that fits what the agent needs to do.
| Tool | type | Use it to | How to add it |
|---|---|---|---|
| Knowledge | file_search | Let the agent search your documents. | Send existing vector store IDs in a JSON body or upload files. |
| API Action | api_action | Let the agent call an HTTP or HTTPS endpoint. | Send a JSON body. |
| Website UI | website_payload | Send structured data to your website. | Send a JSON body. |
Every JSON tool request includes these fields.
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | file_search, api_action, or website_payload. |
label | string | Yes | The tool name, up to 128 characters. |
assistantUseDescription | string | Yes for JSON requests. Optional for multipart uploads. | Explains when the agent should use the tool. |