Skip to main content

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.

TooltypeUse it toHow to add it
Knowledgefile_searchLet the agent search your documents.Send existing vector store IDs in a JSON body or upload files.
API Actionapi_actionLet the agent call an HTTP or HTTPS endpoint.Send a JSON body.
Website UIwebsite_payloadSend structured data to your website.Send a JSON body.

Every JSON tool request includes these fields.

FieldTypeRequiredDescription
typestringYesfile_search, api_action, or website_payload.
labelstringYesThe tool name, up to 128 characters.
assistantUseDescriptionstringYes for JSON requests. Optional for multipart uploads.Explains when the agent should use the tool.