| { |
| "name": "get_agent_run_trace", |
| "description": "Get the Ash trace for a single Agent Run, including turns, messages, reasoning, tool calls, token usage, and tool input/output when available. Use this for debugging exact agent behavior in production.", |
| "inputSchema": { |
| "type": "object", |
| "properties": { |
| "teamId": { |
| "type": "string", |
| "description": "The team ID to get the deployment events for. Alternatively the team slug can be used.\nTeam IDs start with \"team_\".\nIf you do not know the team ID or slug, it can be found through these mechanism:\n- Read the file .vercel/project.json if it exists and extract the orgId\n- Use the `list_teams` tool" |
| }, |
| "projectId": { |
| "type": "string", |
| "description": "The project ID to get the deployment events for. Alternatively the project slug can be used.\nProject IDs start with \"prj_\".\nIf you do not know the project ID or slug, it can be found through these mechanism:\n- Read the file .vercel/project.json if it exists and extract the projectId\n- Use the `list_projects` tool" |
| }, |
| "runId": { |
| "type": "string", |
| "description": "The Agent Run ID to inspect." |
| }, |
| "environment": { |
| "type": "string", |
| "description": "Agent run environment, usually \"production\" or \"preview\". Defaults to \"production\"." |
| }, |
| "period": { |
| "type": "string", |
| "enum": [ |
| "5m", |
| "15m", |
| "1h", |
| "6h", |
| "12h", |
| "1d", |
| "3d", |
| "7d", |
| "14d", |
| "30d", |
| "90d" |
| ], |
| "description": "Preset time range. Ignored when both from and to are provided. Defaults to the dashboard endpoint default." |
| }, |
| "from": { |
| "type": "string", |
| "description": "Start time as ISO 8601, Unix seconds, Unix milliseconds, or a relative duration like \"12h\". Must be used with to." |
| }, |
| "to": { |
| "type": "string", |
| "description": "End time as ISO 8601, Unix seconds, Unix milliseconds, a relative duration like \"1h\", or \"now\". Must be used with from." |
| }, |
| "maxFieldLength": { |
| "type": "number", |
| "description": "Maximum length for individual string fields in the returned trace. Defaults to 8000; use 0 to disable truncation." |
| } |
| }, |
| "required": [ |
| "teamId", |
| "projectId", |
| "runId" |
| ], |
| "additionalProperties": false, |
| "$schema": "http://json-schema.org/draft-07/schema#" |
| } |
| } |