ask_claude
Get Claude AI's analysis by sending a prompt with optional file attachments for code, text, images, or PDFs.
Instructions
Send a prompt to Claude (Anthropic). Optionally attach a local file — code, text, image, or PDF — for Claude to read and include in its analysis. Use this when you want Claude's perspective on a question, piece of code, document, or design.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "ask_claude"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional path to a local file. Absolute paths are recommended to avoid ambiguity about the working directory. Supported types: code and text files (.js .ts .php .py .md .json etc.), images (.png .jpg .jpeg .gif .webp), and PDFs (.pdf). Example: /Users/you/project/auth.php | |
| prompt | Yes | The question or instruction for Claude. | |
| system | No | Optional system prompt that sets Claude's role, e.g. 'You are a security auditor'. |