Skip to content

[ENHANCEMENT] Programmatic tool calling #11506

@sjhatfield

Description

@sjhatfield

Problem (one or two sentences)

Programmatic tool calling allows an agent to write code to call tools more efficiently within a secure, sandboxed container. This avoids multiple round-trips to the model.

Anthropic page: programmatic-tool-calling
Minimal, secure Python interpreter written in Rust specifically for this purpose: monty

Context (who is affected and when)

This feature should help everyone who uses Roo

Desired behavior (conceptual, not technical)

Instead of calling multiple tools, the agent writes a short snippet of Python code, which includes the tool execution and pre/post-processing of results. This code snippet is executed in a sandboxed container

Constraints / preferences (optional)

No response

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Roo Code Task Links (optional)

No response

Acceptance criteria (optional)

No response

Proposed approach (optional)

No response

Trade-offs / risks (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions