Agent Tool Example
Example of how to use the agent tool documentation template
This is an example of how to apply the agent tool documentation template to the Smart Wallet Tools category.
Smart Wallet Tools
Smart Wallet tools provide functionality for deploying, managing, and interacting with Smart Wallets, which are programmable wallets that can hold assets and interact with various contracts on the Stacks blockchain. These tools enable users and agents to perform operations like depositing/withdrawing assets, approving tokens and DEXes, and participating in DAO governance.
Key Features
Wallet Deployment: Create new smart wallets with owner and agent assignments
Asset Management: Deposit, withdraw, and trade various assets
Permission Control: Configure what actions agents can perform
DAO Governance: Propose, vote on, and conclude DAO proposals
Configuration Management: Approve/revoke assets and DEXes for use with the wallet
Tool Overview
smartwallet_deploy_smart_wallet
Deploy a new smart wallet
Owner assignment, DAO token linking
smartwallet_deposit_stx
Deposit STX to a smart wallet
Transaction creation, balance update
smartwallet_withdraw_stx
Withdraw STX from a smart wallet
Transaction creation, balance update
smartwallet_approve_asset
Approve an asset for use with the smart wallet
Asset authorization
smartwallet_vote_on_action_proposal
Vote on an action proposal
Governance participation
How It Works
Smart Wallet tools facilitate the creation and management of programmable wallets that serve as secure intermediaries between users, agents, and blockchain services. The user instructs the agent to deploy the smart wallet and maintains control over assets and configuration, while the agent can perform specific actions based on granted permissions.
Tool Details
smartwallet_deploy_smart_wallet
Purpose: Deploys a new smart wallet for a user.
Input Parameters:
owner_address
: string - Stacks address of the wallet owneragent_address
: string - Stacks address of the agentdao_token_contract
: string - Contract principal of the DAO tokendao_token_dex_contract
(optional): string - Contract principal of the DAO token DEX
Output:
Example Prompt:
This tool allows the agent to deploy a new smart wallet contract with the specified owner and agent addresses. The wallet is automatically configured to work with the specified DAO token and DEX.
Workflow Examples
Asset Management Workflow
This workflow demonstrates how to instruct an agent to set up a smart wallet, fund it with STX, and approve a token for use with the wallet.
DAO Governance Workflow
This workflow demonstrates how to participate in DAO governance by voting on and concluding action proposals.
Error Handling & Security
For detailed information about error codes, security considerations, and best practices when working with Smart Wallets, please refer to the Smart Wallet Contract Documentation.
Related Tools
Wallet Tools: Used for managing the agent's own wallet that interacts with smart wallets
DAO Tools: Used in conjunction with smart wallet tools for DAO governance
Faktory Tools: Used for trading tokens through the smart wallet
Last updated