r_introspect_tools: R Introspection Tools for Autonomous Debugging

r_introspect_toolsR Documentation

R Introspection Tools for Autonomous Debugging

Description

General-purpose primitives that let a console Agent enrich diagnostic context on its own when R's geterrmessage() / last.warning / traceback() snapshots are incomplete.

These tools are intentionally broad (not problem-specific). Domain tactics – e.g. where to look for an install log, how to interpret an Rcpp compilation error – live in the r-debug skill (⁠inst/skills/r-debug/⁠). The tools provide eyes and hands; the skill provides the playbook.

Provided tools:

  • r_eval: run R code in an isolated subprocess, capture stdout, stderr (including from grandchild processes like compilers and install.packages subprocesses), messages, warnings, value, error.

  • r_session_state: structured snapshot of the live R session (.libPaths(), repos, search path, key env vars, options, sessionInfo).


aisdk documentation built on May 29, 2026, 9:07 a.m.