agent.json
{
"id": "agentrove.workflow-automation",
"name": "Workflow Automation",
"version": "0.1.2",
"license": "MIT",
"summary": "Runs small JSON automation recipes on one local folder: read CSV/JSON/Markdown, filter, sort, dedupe, summarize, join, template text, then write, move or copy files. Plan (dry run with a diff) before anything is written; no shell, network, code or deletes.",
"description": "Recipes are lists of built-in steps only (no shell, script, network, download, delete or code steps). validate_recipe checks a recipe without touching files; plan_recipe reads the inputs and runs every step in memory, then lists each folder to create and file to write, append, move or copy (with line diffs for overwrites and a plan_hash) without writing anything; run_recipe applies that plan only with confirm: true, re-checking every operation first. Everything stays inside the workspace folder (AGENTROVE_WORKFLOW_ROOT, or the folder the CLI / MCP server starts in if it looks like a project; home, system and root folders are refused): no absolute paths, no '..', no hidden files, no writing through links, existing files are never replaced unless a write step says if_exists: overwrite, files that AI assistants or tools read as instructions or configuration (CLAUDE.md, AGENTS.md, package.json, .claude/ ...) are never written or moved into place, and nothing is deleted.",
"sdk_import": "../../../sdk/index.js",
"entry": {
"module": "src/index.js",
"cli": "bin/cli.js",
"mcp": "bin/mcp.js"
},
"tools": [
{
"name": "validate_recipe",
"description": "Checks a recipe without reading or writing any file: step types and properties, step references (from), paths (relative, no '..', no hidden names), templates, globs, conditions and limits. Returns valid, errors with their location, warnings and a step summary (what each step reads and writes).",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"required": [
"recipe"
],
"additionalProperties": false,
"properties": {
"recipe": {
"type": "object",
"description": "Recipe JSON: {name?, description?, timezone? (IANA, default UTC), vars? {name: string|number|boolean}, limits?, steps: [{id, type, from?, ...}]}. Step types - sources: read_csv {path|glob, delimiter?, header?}, read_json {path|glob, pointer?}, read_markdown {path|glob}, read_text {path}, list_files {folder?, pattern?, include_folders?}, read_input {format: text|csv|json|markdown}, literal {value}; transforms (rows): filter {where: [{field, op, value?, type?, ignore_case?}], match?}, map {rename?, set? {field: template}, cast?, pick?, omit?}, sort {by}, dedupe {by?, keep?}, limit {count, offset?}, summarize {group_by?, metrics: [{op, field?, as?}]}, join {with, on | left_on+right_on, how?, fields?, prefix?}, concat {from: [ids]}, unnest {field, as?}; formatting: template {template, escape?}, to_csv, to_json, to_markdown_table; files: write_file {path, from | content, for_each?, if_exists?: error|skip|overwrite|append|suffix}, move_files {to, path_field?, if_exists?: error|skip|suffix}, copy_files {to, ...}. Templates are Mustache-like ({{field}}, {{#rows}}...{{/rows}}, filters such as {{name | slug}}).",
"properties": {
"steps": {
"type": "array",
"description": "Steps in order (1 to 50); each is an object with id and type."
}
}
}
}
},
"output_schema": {
"type": "object",
"required": [
"valid",
"recipe_name",
"errors",
"warnings",
"steps",
"step_types"
],
"properties": {
"valid": {
"type": "boolean"
},
"recipe_name": {
"type": "string"
},
"errors": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"message"
],
"properties": {
"path": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"steps": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"type",
"group",
"output",
"reads",
"writes"
],
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"group": {
"type": "string",
"enum": [
"source",
"transform",
"format",
"file"
]
},
"from": {
"type": [
"string",
"array",
"null"
]
},
"output": {
"type": "string"
},
"reads": {
"type": "array",
"items": {
"type": "string"
}
},
"writes": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"step_types": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
{
"name": "plan_recipe",
"description": "Dry run (no side effects): reads the recipe's input files inside the workspace, runs every step in memory and returns the planned file operations WITHOUT performing them: folders to create, files to create / overwrite (with a line diff) / append, files to move or copy, skips, unchanged files and conflicts, plus a text diff, step previews, warnings, a Markdown report (report, a markdown_document) and a plan_hash to pass to run_recipe.",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"required": [
"recipe"
],
"additionalProperties": false,
"properties": {
"recipe": {
"type": "object",
"description": "Recipe JSON (see validate_recipe).",
"properties": {
"steps": {
"type": "array",
"description": "Steps in order (1 to 50); each is an object with id and type."
}
}
},
"vars": {
"type": "object",
"description": "Values for {{vars.name}}; override the recipe's vars. Strings (at most 2000 characters), numbers or booleans."
},
"input_text": {
"type": "string",
"maxLength": 5000000,
"description": "Optional text that read_input steps read (as text, CSV, JSON or Markdown), for example another agent's output."
},
"preview_rows": {
"type": "integer",
"minimum": 0,
"maximum": 50,
"description": "Rows (or characters of text) shown per step. Default 5; 0 for none."
},
"include_contents": {
"type": "boolean",
"description": "Include the full content of every file to be written. Default false (a preview and the SHA-256 are always included)."
}
}
},
"output_schema": {
"type": "object",
"required": [
"recipe_name",
"workspace",
"plan_hash",
"executed",
"ready",
"summary",
"operations",
"diff",
"steps",
"warnings",
"report"
],
"properties": {
"recipe_name": {
"type": "string"
},
"workspace": {
"type": "string"
},
"plan_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"executed": {
"type": "boolean"
},
"ready": {
"type": "boolean"
},
"summary": {
"type": "object",
"required": [
"operations",
"planned",
"conflicts"
],
"properties": {
"operations": {
"type": "integer",
"minimum": 0
},
"planned": {
"type": "integer",
"minimum": 0
},
"create_folder": {
"type": "integer",
"minimum": 0
},
"create": {
"type": "integer",
"minimum": 0
},
"overwrite": {
"type": "integer",
"minimum": 0
},
"append": {
"type": "integer",
"minimum": 0
},
"move": {
"type": "integer",
"minimum": 0
},
"copy": {
"type": "integer",
"minimum": 0
},
"skip": {
"type": "integer",
"minimum": 0
},
"unchanged": {
"type": "integer",
"minimum": 0
},
"conflicts": {
"type": "integer",
"minimum": 0
},
"bytes_to_write": {
"type": "integer",
"minimum": 0
}
}
},
"operations": {
"type": "array",
"items": {
"type": "object",
"required": [
"index",
"step",
"op",
"path",
"status"
],
"properties": {
"index": {
"type": "integer",
"minimum": 1
},
"step": {
"type": "string"
},
"op": {
"type": "string",
"enum": [
"create_folder",
"write_file",
"move_file",
"copy_file"
]
},
"path": {
"type": "string"
},
"from": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"create",
"overwrite",
"append"
]
},
"status": {
"type": "string",
"enum": [
"planned",
"skip",
"unchanged",
"conflict"
]
},
"reason": {
"type": "string"
},
"bytes": {
"type": "integer",
"minimum": 0
},
"sha256": {
"type": "string"
},
"before_sha256": {
"type": "string"
},
"renamed_from": {
"type": "string"
},
"case_only": {
"type": "boolean"
},
"diff": {
"type": "object"
},
"preview": {
"type": "string"
},
"content": {
"type": "string"
}
}
}
},
"diff": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"type",
"output"
],
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"output": {
"type": "string"
}
}
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"report": {
"type": "string"
}
}
}
},
{
"name": "run_recipe",
"description": "Applies the recipe's plan to the workspace: creates folders and writes, appends, moves or copies files exactly as plan_recipe lists them. Requires confirm: true; pass expected_plan_hash (from plan_recipe) so it stops if anything changed since the plan was reviewed. Refuses to start while the plan has conflicts, re-checks every operation before it runs, never replaces existing files except for write steps with if_exists: overwrite, never deletes, and stops at the first failure.",
"side_effects": "writes_local_files",
"requires_confirmation": true,
"input_schema": {
"type": "object",
"required": [
"recipe"
],
"additionalProperties": false,
"properties": {
"recipe": {
"type": "object",
"description": "The same recipe JSON that was planned.",
"properties": {
"steps": {
"type": "array",
"description": "Steps in order (1 to 50); each is an object with id and type."
}
}
},
"vars": {
"type": "object",
"description": "The same vars that were planned."
},
"input_text": {
"type": "string",
"maxLength": 5000000,
"description": "The same input_text that was planned."
},
"expected_plan_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$",
"description": "plan_hash from the reviewed plan_recipe result. If the plan differs now, nothing is written (plan_changed)."
},
"preview_rows": {
"type": "integer",
"minimum": 0,
"maximum": 50
},
"include_contents": {
"type": "boolean"
},
"confirm": {
"type": "boolean",
"description": "Must be true. Set it only after the user approved the plan."
}
}
},
"output_schema": {
"type": "object",
"required": [
"recipe_name",
"workspace",
"plan_hash",
"executed",
"ready",
"summary",
"operations",
"diff",
"steps",
"warnings",
"report",
"results"
],
"properties": {
"recipe_name": {
"type": "string"
},
"workspace": {
"type": "string"
},
"plan_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"executed": {
"type": "boolean"
},
"ready": {
"type": "boolean"
},
"summary": {
"type": "object",
"required": [
"operations",
"planned",
"conflicts"
]
},
"operations": {
"type": "array",
"items": {
"type": "object",
"required": [
"index",
"step",
"op",
"path",
"status"
]
}
},
"diff": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"type",
"output"
]
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"report": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"index",
"op",
"path",
"status"
],
"properties": {
"index": {
"type": "integer",
"minimum": 1
},
"op": {
"type": "string"
},
"path": {
"type": "string"
},
"from": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string",
"enum": [
"done",
"skipped",
"unchanged"
]
},
"detail": {
"type": [
"string",
"null"
]
}
}
}
}
}
}
}
],
"permissions": {
"filesystem": "read_write",
"network": [],
"credentials": [],
"notes": "No network and no credentials. plan_recipe reads files only inside the workspace folder (AGENTROVE_WORKFLOW_ROOT; otherwise the start folder, only if it looks like a project: .git, package.json, pyproject.toml, .agentrove-workspace and similar; drive roots, the home folder itself and system folders are refused). Hidden entries and links leading outside are refused. run_recipe (confirm: true) creates folders and writes, appends, moves or copies files only inside that folder; it never deletes, replaces an existing file only for write steps with if_exists: overwrite, and never writes or moves a file to a protected instruction/configuration name. AGENTROVE_WORKFLOW_ROOT is optional configuration, not a secret. No processes are started."
},
"io": {
"inputs": [
{
"name": "input_text",
"type": "text"
}
],
"outputs": [
{
"name": "report",
"type": "markdown_document"
}
]
},
"runtimes": [
{
"id": "node",
"version": ">=20",
"tested": true,
"notes": "Tested by AgentRove with Node.js 24 on Windows 11 (NTFS); macOS and Linux not yet verified."
},
{
"id": "claude-code",
"tested": false,
"notes": "MCP stdio server; not yet verified in Claude Code by AgentRove"
}
],
"external_costs": "None. Runs locally on files in your workspace folder; no network access, no API keys, no AI model calls."
}