> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ToolCallDetail

> Which tool a call is, with its arguments normalized across local and cloud agents.

Which tool a call is, with its arguments normalized across local and cloud
agents. Narrow on `tool`:

```ts
if (call.detail.tool === "exec") console.log(call.detail.command, call.detail.exitCode);
```

`other` is any tool without a dedicated shape — the raw `rawInput`, `meta`,
`toolName` and `inferenceToolName` on the [ToolCall](https://docs.devin.ai/sdk/reference/interfaces/ToolCall.md) still describe it.

```typescript
type ToolCallDetail = { background: boolean; command: string | undefined; cwd: string | undefined; exitCode: number | undefined; tool: "exec" } | { files: FileUpdate[]; path: string | undefined; tool: "read" } | { files: FileUpdate[]; path: string | undefined; tool: "write" } | { files: FileUpdate[]; path: string | undefined; tool: "edit" } | { path: string | undefined; tool: "list_directory" } | { path: string | undefined; query: string | undefined; tool: "file_search" } | { args: unknown; name: string; server: string | undefined; tool: "mcp" } | { command: string | undefined; permissionType: string; requestId: string | undefined; tool: "permission_request" } | { questions: UserQuestionItemMeta[]; tool: "ask_user_question" } | { actions: CognitionComputerUseAction[]; tool: "computer_use" } | { headline: string | undefined; impact: string; severity: string | undefined; tool: "report_blocker" } | { tool: "other" }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.