createFileTool
Creates a file with the specified name and content under the local AgentFiles directory, allowing MCP agents to persist generated text or data.
Instructions
Creates a file with the specified name and content.
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": {
"fileName": "<fileName>",
"content": "<content>"
},
"name": "createFileTool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The content to be written to the file. | |
| fileName | Yes | The name of the file to be created. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The result of the file creation operation, indicating success or failure. |