Skip to main content
Custom tools are Python handlers you author in Dev Studio for domain-specific logic.

Tool contract

Never hardcode API keys. Use env_variables.get("API_KEY").

Example

Define parameter types and descriptions in Dev Studio for validation and agent prompting.

Test tools

  1. Open the tool in Dev StudioTest tab.
  2. Enter realistic sample input JSON.
  3. Choose Dev, UAT, or Prod for env_variables.
  4. Review stdout, errors, and returned output / captured_variables.
  5. Fix and re-test before Publish.
Dev Studio test panel

Dev Studio Test panel

Never put real secrets in sample inputs.

Publish versions

  1. Draft — edit handler and parameters.
  2. Test — validate in Dev (and UAT per your process).
  3. Publish — immutable version with release notes.
  4. Build — pin when you build the Agent Graph.
Keep prior versions for rollback: re-attach in Graph Studio, Save, new Build, redeploy. Published tools attach on Master Agent, Child Agent, and Tool nodes.
  1. Open Graph Studio → select a node → Tools tab.
  2. Add tool → pick a published tool.
  3. Map input variables from the session where shown.
  4. Save the graph before Build.
Tools tab with tool picker

Agent node Tools tab

See Graph Studio — Agent configuration.