xpay tools logo
  • Tools
  • Collections
  • Skills
  • Docs
  • xpay.sh
Tool Skill
Code Runner logo

Execute Code With Variables

execute_code_with_variables

Execute JavaScript or Python code with dynamic input variables that can be defined and passed as key-value pairs

$0.01/call
Flat rate
Code Runner
Raw SKILL.mdTool Page

When to Use

Use this tool when you need to execute javascript or python code with dynamic input variables that can be defined and passed as key-value pairs. This is part of the Code Runner provider on xpay✦.

MCP Connection

Connect to xpay✦ to access this tool (and 3+ others):

{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}

For Claude Code:

claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"

How to Execute

Use the xpay✦ meta-tools to run this tool:

  1. xpay_details — Get full input schema: xpay_details("code-runner/execute_code_with_variables")
  2. xpay_run — Execute: xpay_run("code-runner/execute_code_with_variables", { ...inputs })

Input Parameters

ParameterTypeRequiredDescription
inputstringNoAdditional input data for the program (stdin)
variablesstringNoDynamic input variables as key-value pairs. Can be a JSON object or a JSON string (e.g., {"name": "John", "age": 25, "items": [1,2,3]} or "{"name": "John", "age": 25}")
codestringYesCode to execute
enableNetworkingbooleanNoEnable network access for this execution
languagestringYesProgramming language to execute
memoryLimitnumberNoMemory limit in MB (max 512)
timeoutnumberNoExecution timeout in milliseconds (max 60000)

Pricing

  • Cost: $0.01/call
  • Balance check: Use xpay_balance to check remaining credits
  • Get your API key at xpay.tools — $5 free credits included

Related Skills

  • Code Runner (all tools) — 4 tools
  • Execute Code — $0.01/call
  • Get Capabilities — $0.01/call
  • Validate Code — $0.01/call

Links

  • Tool page: https://xpay.tools/code-runner/execute-code-with-variables/
  • Provider: https://xpay.tools/code-runner/
  • All tools: https://xpay.tools/explore
How to Execute
// 1. Get full schema
xpay_details("code-runner/execute_code_with_variables")
// 2. Execute
xpay_run("code-runner/execute_code_with_variables", { ...inputs })
Input Parameters
ParameterTypeRequiredDescription

input

stringNo

Additional input data for the program (stdin)

variables

stringNo

Dynamic input variables as key-value pairs. Can be a JSON object or a JSON string (e.g., {"name": "John", "age": 25, "items": [1,2,3]} or "{\"name\": \"John\", \"age\": 25}")

code

string
Yes

Code to execute

enableNetworking

booleanNo

Enable network access for this execution

language

string
Yes

Programming language to execute

memoryLimit

numberNo

Memory limit in MB (max 512)

timeout

numberNo

Execution timeout in milliseconds (max 60000)

Related Tools from Code Runner
Execute Code — $0.01Get Capabilities — $0.01Validate Code — $0.01
Install Skill
Claude Code
claude /install-skill https://xpay.tools/skills/code-runner/execute-code-with-variables/SKILL.md
CLI
npx @xpaysh/cli install code-runner/execute-code-with-variables
Manual
curl -o SKILL.md https://xpay.tools/skills/code-runner/execute-code-with-variables/SKILL.md
Pricing

Cost

$0.01/call

Model

Flat rate

Provider

Code Runner

xpay tools logo

Marketplace for AI Capabilities. Run agents, tools & prompts with pay-per-use micropayments.

or ask your AI app
Popular Tools
FirecrawlTavilyExaHunterPerplexityRecraftIdeogramFlux
Collections
AI Image & MediaContent & ResearchDev ToolsFinanceLead GenWeb ScrapingCompetitive Intel
Developers
DocumentationAPI ReferenceQuickstartSDKsSkillsskill.mdllms.txt
Resources
The Agentic EconomyAgentic CommerceAgent Frameworksx402 ProtocolBlog
Company
About xpayxpay.shGitHubDiscordTwitter / X

© 2026 Agentically Inc. All rights reserved.
Privacy PolicyTerms of Service