Skip to main content

Email: Send Draft Tool

Usage

All Portia tools using API endpoints that require OAuth are built with plug and play authentication support. They use Portia client credentials including client ID, client name and redirect URL. Such tools will raise a Action Clarification with an OAuth link as the action URL. The portia.wait_for_ready() method must be used in this scenario: Portia's OAuth server will listen for the authentication result and resolve the concerned clarification, allowing your plan run to resume again.

For more on this, please visit to the section on running Portia tools ().

Tool details

Tool ID: portia:google:gmail:send_draft_email

Tool description: Sends a previously drafted email with the email title, body and recipientsindicated in the draft. Required a draft id which is obtained from the DraftEmailTool.

Args schema:

{
"description": "Input for SendDraftEmailTool.",
"properties": {
"draft_id": {
"description": "The id of the draft email as returned by the DraftEmailTool tool",
"title": "Draft Id",
"type": "string"
}
},
"required": [
"draft_id"
],
"title": "SendDraftEmailToolSchema",
"type": "object"
}

Output schema:

('str', 'str: ID of the email sent')