register_agent
Register an AI agent with NWO Robotics by providing a wallet address, agent name, and capabilities to enable robot control and IoT device management.
Instructions
Self-register as a new AI agent (if not already registered)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_address | Yes | Ethereum wallet address (0x...) | |
| agent_name | Yes | Name for this agent | |
| capabilities | No | List of capabilities (vision, navigation, manipulation, iot) |
Implementation Reference
- server.js:328-352 (handler)The handler function that executes the logic for 'register_agent', calling the external API to register the agent.
async registerAgent(args) { const response = await axios.post( `${API_BASE}/api-agent-register.php`, { wallet_address: args.wallet_address, agent_name: args.agent_name, capabilities: args.capabilities || ['vision', 'navigation'], } ); const data = response.data; return { content: [ { type: 'text', text: `Agent registered!\n` + `Agent ID: ${data.agent_id}\n` + `API Key: ${data.api_key_prefix}...\n` + `Tier: ${data.tier}\n` + `Monthly Quota: ${data.monthly_quota}\n\n` + `IMPORTANT: Save your API key securely!`, }, ], }; } - server.js:124-145 (schema)The schema definition for the 'register_agent' tool, defining inputs and description.
name: 'register_agent', description: 'Self-register as a new AI agent (if not already registered)', inputSchema: { type: 'object', properties: { wallet_address: { type: 'string', description: 'Ethereum wallet address (0x...)', }, agent_name: { type: 'string', description: 'Name for this agent', }, capabilities: { type: 'array', items: { type: 'string' }, description: 'List of capabilities (vision, navigation, manipulation, iot)', }, }, required: ['wallet_address', 'agent_name'], }, }, - server.js:197-198 (registration)The registration of the 'register_agent' tool within the main tool handler switch statement.
case 'register_agent': return await this.registerAgent(args);