Skip to main content

game-plugin-oneshot

GAME SDK plugin that gives Virtuals Protocol agents access to OneShot real-world tools.

Install

pip install game-plugin-oneshot

Quick Start

import os
from game_sdk.game.agent import Agent
from game_plugin_oneshot import OneShotPlugin

plugin = OneShotPlugin(
    private_key=os.environ["WALLET_PRIVATE_KEY"],
)

agent = Agent(
    api_key=os.environ["GAME_API_KEY"],
    name="my-agent",
    agent_description="An agent that can interact with the real world",
)

agent.add_worker(plugin.get_worker())
agent.run()

Tools

All 31 OneShot tools (same set as the MCP server and langchain-oneshot):

Tool Description Paid?
oneshot_email Send emails to real recipients paid
oneshot_sms Send SMS text messages paid
oneshot_voice Make phone calls with an AI voice agent paid
oneshot_research Deep research reports paid
oneshot_web_search Web search (fast, synchronous) paid
oneshot_web_read Read a web page as markdown paid
oneshot_people_search Search people by title/company/location paid
oneshot_enrich_profile Enrich a profile from LinkedIn/email/name paid
oneshot_find_email Find an email at a company paid
oneshot_verify_email Verify email deliverability paid
oneshot_deep_research_person Full background report on a person paid
oneshot_social_profiles Find someone's social accounts paid
oneshot_article_search Articles/interviews about a person paid
oneshot_person_newsfeed Recent social posts for a person paid
oneshot_person_interests What a person cares about paid
oneshot_person_interactions Followers/following/replies paid
oneshot_commerce_search Search for products free
oneshot_commerce_buy Purchase products online paid
oneshot_build Generate and deploy a website paid
oneshot_update_build Update an existing website paid
oneshot_browser Browser automation task paid
oneshot_browser_create_profile Create a persistent browser profile free
oneshot_browser_list_profiles List browser profiles free
oneshot_browser_delete_profile Delete a browser profile free
oneshot_inbox_list List inbound emails free
oneshot_inbox_get Get an inbound email by ID free
oneshot_sms_inbox_list List inbound SMS free
oneshot_sms_inbox_get Get an inbound SMS by ID free
oneshot_notifications List agent notifications free
oneshot_mark_notification_read Mark a notification as read free
oneshot_get_balance Get USDC + credits balance free

Paid tools are priced in USDC via x402. See Pricing for current rates.

Payment

All paid tools use the x402 payment protocol to deduct USDC from your wallet on Base Mainnet. Fund your wallet with USDC before using paid tools.

Complex Arguments

GAME Argument only supports scalar types. For tools that need structured input (commerce_buy, build, update_build), pass JSON strings; list fields on people_search accept comma-separated values:

# The agent will generate these automatically, but for manual testing:
import json

shipping = json.dumps({
    "first_name": "John",
    "last_name": "Doe",
    "street": "123 Main St",
    "city": "Austin",
    "state": "TX",
    "zip_code": "78701",
    "phone": "+15551234567",
})

product = json.dumps({
    "name": "Acme SaaS",
    "description": "Project management for teams",
})

Configuration

Parameter Default Description
private_key (required) Hex-encoded Ethereum private key
base_url None Override API URL

Requirements

  • Python >= 3.10
  • game-sdk >= 0.1.5
  • oneshot-python >= 0.11.0

Links

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

game_plugin_oneshot-0.10.0.tar.gz (90.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

game_plugin_oneshot-0.10.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file game_plugin_oneshot-0.10.0.tar.gz.

File metadata

  • Download URL: game_plugin_oneshot-0.10.0.tar.gz
  • Upload date:
  • Size: 90.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for game_plugin_oneshot-0.10.0.tar.gz
Algorithm Hash digest
SHA256 c01cb31f8cdb3316e3031cabfa32d9f18481dc9f588c60fcfce13c2200a1d797
MD5 43ec5083aecde6ff4e9f88f3011d5388
BLAKE2b-256 4fdd83b75be7bae308679d7669c84b4d1129191d2257ca7b37e418a35f36a43e

See more details on using hashes here.

File details

Details for the file game_plugin_oneshot-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for game_plugin_oneshot-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42975af115d7c6dca0b948ca397001b9419aa8553967ea224be1adf1f0a9b23b
MD5 3e24c494d619dfb1de9effcd758705fe
BLAKE2b-256 2b4c06e59996370fc352d6ca569370b69a7fb89221dd26de6916f12b4427a99d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page