mateclaw/mateclaw-server/src/main/java/vip/mate/tool/builtin
matevip 94cf812207 feat(tool): add execute_code for running agent-authored code (#257)
Add an execute_code built-in tool that runs python/bash/node code the agent
writes on the fly, so a documentation-only skill (a SKILL.md with no bundled
scripts) can be acted on. Scoped runs inject the skill's secrets and run in
the skill directory; otherwise a private scratch directory is used. Host
secret env vars are scrubbed from the subprocess. execute_code is an
agent-wide capability, registered in the tool catalog (V143), and screened
by the tool guard with a dedicated set of destructive-pattern rules.

Tests cover python/bash/node execution, scratch-dir fallback, env scrubbing,
argument decoding, and guard gating.
2026-06-09 08:05:50 +08:00
..
BrowserUseTool.java fix(tool): retry browser_use eval with async IIFE on top-level return 2026-05-24 22:57:30 +08:00
ChatUploadResolver.java fix(chat): surface stored path for uploaded attachments 2026-04-28 23:59:27 +08:00
CodeExecuteTool.java feat(tool): add execute_code for running agent-authored code (#257) 2026-06-09 08:05:50 +08:00
CronJobTool.java fix(cron): dedup scheduled jobs + connection pool guard (issue #50) 2026-05-01 09:49:30 +08:00
DatasourceTool.java fix(security): login rate limiting, SQL injection fix, error boundary 2026-04-11 18:31:51 +08:00
DateTimeTool.java feat(i18n): add backend internationalization — tool descriptions, error messages, guard rules, runtime context 2026-04-11 17:08:43 +08:00
DelegateAgentTool.java Harden goal approval and workspace flows 2026-05-23 22:55:16 +08:00
DelegationContext.java Harden goal approval and workspace flows 2026-05-23 22:55:16 +08:00
DocumentExtractTool.java fix(tool): enforce workspace boundary on shell commands and file metadata tools 2026-05-25 16:26:16 +08:00
DocxRenderTool.java fix(tool): emit absolute download URLs for streaming-generated files (#164) 2026-06-07 15:03:48 +08:00
EditFileTool.java fix(agent): pre-tool no-claim system rule + correct write/edit approval docs 2026-05-14 14:59:32 +08:00
EnableExtensionTool.java feat(tool,skill,ui): progressive tool/skill disclosure (load_skill + enable_tool + tier UI) 2026-05-23 09:07:45 +08:00
FileTypeDetectorTool.java fix(tool): enforce workspace boundary on shell commands and file metadata tools 2026-05-25 16:26:16 +08:00
GoalManagementTool.java fix(goal): drop score gate, bill failed evaluator calls, fix Evaluator SPI + tool prompt + bootstrap cap 2026-06-03 21:19:27 +08:00
HtmlImageRenderTool.java fix(tool): emit absolute download URLs for streaming-generated files (#164) 2026-06-07 15:03:48 +08:00
ImageGenerateTool.java feat(tool/image,video): image edit support + new DashScope models (#75) 2026-05-08 22:05:06 +08:00
MateClawDocTool.java Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00
PdfRenderTool.java fix(tool): emit absolute download URLs for streaming-generated files (#164) 2026-06-07 15:03:48 +08:00
PptxRenderTool.java fix(tool): emit absolute download URLs for streaming-generated files (#164) 2026-06-07 15:03:48 +08:00
ProgressLedgerTool.java feat(agent): echo full ledger snapshot in progress_update tool result 2026-05-24 23:00:24 +08:00
ReadFileTool.java feat(tool): read_file can page through an oversized single line via startColumn (#190) 2026-05-21 22:27:09 +08:00
SendFileTool.java fix(tool): emit absolute download URLs for streaming-generated files (#164) 2026-06-07 15:03:48 +08:00
ShellExecuteTool.java fix(tool): close three sandbox follow-up gaps surfaced by review 2026-05-25 17:55:56 +08:00
SkillFileTool.java fix(skill): enforce agent skill bindings in skill meta-tools at runtime (#265) 2026-06-07 17:30:41 +08:00
SkillLoadTool.java fix(skill): enforce agent skill bindings in skill meta-tools at runtime (#265) 2026-06-07 17:30:41 +08:00
SkillManageTool.java chore: drop external project name references from code comments 2026-05-20 08:09:43 +08:00
SkillScriptTool.java fix(skill): enforce agent skill bindings in skill meta-tools at runtime (#265) 2026-06-07 17:30:41 +08:00
SqlQueryTool.java feat(datasource): add auto ECharts visualization for SQL query results 2026-04-06 14:53:22 +08:00
TikaExtractor.java feat(wiki): Tika as last-resort document extractor 2026-04-25 19:02:34 +08:00
ToolExecutionContext.java feat(cron): channel delivery via ChatOrigin + Spring AI ToolContext 2026-04-28 21:43:58 +08:00
VideoGenerateTool.java feat(cron): channel delivery via ChatOrigin + Spring AI ToolContext 2026-04-28 21:43:58 +08:00
WebSearchService.java feat(search): add advanced params, caching, security wrapping, and dual-search coexistence 2026-04-07 18:00:04 +08:00
WebSearchTool.java fix(agent): unbreak DashScope tool calls, sharpen error class, rebalance plan triage (refs #246) 2026-06-03 08:38:48 +08:00
WorkspaceMemoryTool.java feat(memory): per-owner memory isolation with owner_key + visibility scope (#235) 2026-06-02 17:04:06 +08:00
WriteFileTool.java fix(agent): pre-tool no-claim system rule + correct write/edit approval docs 2026-05-14 14:59:32 +08:00
XlsxRenderTool.java fix(tool): emit absolute download URLs for streaming-generated files (#164) 2026-06-07 15:03:48 +08:00