Agent tooling troubleshooting

Fix tool creation and file-action errors

Tool and file-action errors are different from normal chat errors. The model can answer text while a client-side tool, workspace permission, patch format, or schema validation step fails. Test one tiny non-streaming text request, then one tiny tool definition, then the full agent workflow.

tool creation failed function calling failed file write failed workspace patch failed tool schema error

Direct answer

Tool and file-action errors are different from normal chat errors. The model can answer text while a client-side tool, workspace permission, patch format, or schema validation step fails. Test one tiny non-streaming text request, then one tiny tool definition, then the full agent workflow.

Use this page for public troubleshooting only.

Private order, key, and balance details belong in the customer portal or support. Public docs can explain the diagnostic path, not reveal account-specific state.

Error phrases this guide covers

Search tools, logs, and support tickets do not always use the same wording. Treat these phrases as the same troubleshooting family before changing unrelated settings.

tool creation failed function calling failed file write failed workspace patch failed tool schema error

Fast check before changing everything

Run the smallest check that isolates the failing layer. If the small request works, the problem is usually the client configuration, hidden context, permissions, or advanced feature path rather than the whole account.

Tool isolation order
1. Plain non-streaming chat.
2. One tiny tool definition.
3. One tiny file create or edit action.
4. Full project context and larger agent task.

Common causes

  • The client exposes tools to the model but blocks file writes, shell commands, or workspace access at the UI permission layer.
  • The tool schema is too large, malformed, duplicated, or not supported by the selected route.
  • The assistant returns a patch, but the client rejects it because the target path is missing or outside the allowed workspace.
  • Streaming or long context makes it harder for the client to parse the tool call reliably.

Fix steps

  1. Check the tool or IDE permission mode before blaming the model route.
  2. Disable all tools except one minimal test tool and run a tiny prompt.
  3. If file editing is involved, confirm the target folder is visible to the client and that the path is inside the project workspace.
  4. Retry non-streaming before enabling streaming tool calls or full project context.

Verify before retrying production traffic

  • Confirm plain chat works with the same model and key.
  • Confirm the client log shows a tool call attempt, not just a text answer about a tool.
  • Check whether the file appears in the client workspace after the patch is applied, not only whether the model says it created it.
Do not use expensive retry loops as a diagnostic tool.

Use one small request first. Large retries can spend balance, hide the original cause, and create confusing logs.

Diagnostic decision tree

Work through these checks in order. The goal is to isolate the failing layer before editing unrelated settings or sending another expensive request.

Check Action Pass result Fail result
Minimal request Run the smallest check from this page with the same key, endpoint shape, and one public model slug. The account and basic route probably work; move to client settings, hidden context, tools, or retries. Fix auth, base URL, balance, model slug, or current route health before testing advanced features.
Client final URL Inspect the actual URL or provider profile the client sends, not only the visible settings field. Continue with request body, model slug, payload size, and feature compatibility checks. Correct host/base/full-endpoint confusion before changing keys or model families.
Balance movement Compare dashboard balance before and after one tiny diagnostic request. If charged and no answer arrives, collect the support packet before retrying large prompts. If not charged, focus first on request rejection, wrong endpoint, auth, or client-side failure.
Feature isolation Disable streaming, tools, images, file context, long history, and automation loops for one retry. Re-enable one feature at a time until the failing layer is identified. Keep the request small and do not use production retries as the diagnostic method.
Route health Check Service Status and try a tiny prompt on one nearby public model row if your workflow allows it. Use a documented fallback only if quality and cost are acceptable. Wait, switch safely, or contact support with timestamps instead of hammering the failing route.

Prevent it next time

Treat agent actions as a separate capability from text generation. Keep workspace permission, file visibility, tool schemas, and patch application logs visible to users before running larger repo edits.

Minimum support packet

Collect these details before opening support. This avoids exposing secrets while giving enough context to match logs and reproduce the public failure path.

Field Why support needs it
Timestamp Use UTC or include timezone so logs can be matched accurately.
Endpoint path Include /v1, /anthropic, or the exact client route shape involved.
Public model slug Send the customer-facing slug, not a private key, upstream account name, or hidden route.
Exact error text Include the visible tool creation failed message and any HTTP status shown by the client.
Minimal request result State whether the tiny check on this page works with the same key.
Balance movement State whether balance changed after the failed request or only after retries.
Client and feature flags Name the tool, SDK, streaming setting, image input, tools, file context, or automation loop involved.

When to contact support

Contact support when a minimal reproducible check still fails, when the dashboard history does not match what your client received, or when usage appears charged but no usable answer reached the client.

  • Include timestamp, endpoint path, public model slug, exact error wording, and whether the same key works on a minimal request.
  • Include whether the dashboard balance changed and whether the client retried in the background.
  • Do not send secrets, full API keys, regulated data, or private production prompts in public support messages.

Open the support bot after collecting the reproducible details.

Use these pages to verify the exact base URL, model slug, billing behavior, service status, or broader troubleshooting route before changing unrelated settings.

Environment overview Use this supporting source to verify the next setup, billing, model, trust, or status step. Claude Code setup Use this supporting source to verify the next setup, billing, model, trust, or status step. Request timeout Diagnose CorvusLLM request timeout, long request failed, gateway timeout, stream timeout, and large prompt latency issues. Docs hub Use this supporting source to verify the next setup, billing, model, trust, or status step. Troubleshooting hub Use this supporting source to verify the next setup, billing, model, trust, or status step. API overview Use this supporting source to verify the next setup, billing, model, trust, or status step. Models & Slugs Use this supporting source to verify the next setup, billing, model, trust, or status step. Billing, Balance & Cache Use this supporting source to verify the next setup, billing, model, trust, or status step. Service Status Use this supporting source to verify the next setup, billing, model, trust, or status step. Model not found Diagnose CorvusLLM model not found, unknown model, no such model, and 404 slug errors with safe checks, canonical slug fixes, and retry guidance. Invalid API key Diagnose CorvusLLM invalid API key, unauthorized, 401, and 403 errors with Bearer auth checks, dashboard key verification, and client-profile fixes. Wrong base URL Diagnose CorvusLLM wrong base URL, double /v1, wrong endpoint path, Claude Code /anthropic, and OpenAI-compatible routing mistakes.
Topic map

Continue with the right source

Open the exact setup, model, billing, and troubleshooting pages instead of guessing configuration values.

docs Choose the path once, then stay consistent. Environment Overview: Every supported environment at a glance: which base URL to use, where to paste the key. docs Claude Code uses /anthropic , not /v1 . Claude Code: Connect Claude Code through the Anthropic-native /anthropic gateway with copy-paste environment variables. docs Fix request timeout errors Request Timeout: Diagnose request timeout, gateway timeout, long request failed, stream timeout. docs Set up CorvusLLM without guessing. Overview: The clean start page: base URLs, model overview, environment overview, and where to begin. docs Most CorvusLLM issues are the same four mistakes. Troubleshooting: Clear fixes for wrong base URLs, bad model slugs, out-of-balance errors, delivery questions. docs API base URLs and request paths. API Overview: Base URLs, authentication, request formats, OpenAI-compatible vs Anthropic-native paths. docs Use the canonical customer slug and keep it simple. Models & Slugs: Every customer-facing model with one customer slug, provider family, pricing. docs bills against the customer key balance and stops at zero. Billing, Balance & Cache: How prepaid balance works, how same-key top-ups work, how usage deductions, out-of-balance behavior. trust Trust Center The Trust Center explains affiliation, data handling, support, refunds, compatibility evidence, pricing methodology. trust How to Verify CorvusLLM Before You Buy The verification checklist shows how to test CorvusLLM claims, endpoint setup, pricing data, status, legal pages. trust Proof of Operations Proof of Operations collects public evidence assets, published data, operational boundaries. status Checking current status The status page shows customer-facing live checks for website, checkout, customer login, and API compatibility routes. faq Frequently Asked Questions CorvusLLM FAQ and help center with searchable answers about pricing, refunds, delivery, API setup, Cursor, Claude Code. docs Buy, paste, test, and verify your balance in minutes. Quickstart: The shortest safe path from purchase to a working request and a visible balance in the dashboard.
Browse docs
On this page