generate_gitignore
Create a .gitignore file for your project by selecting templates for programming languages and development environments to exclude unnecessary files from version control.
Instructions
Generate a .gitignore file based on specified templates and save it to the specified path
Responses:
200 (Success): Successful Response
Content-Type:
application/jsonResponse Properties:
success: Whether the operation was successful
message: Status message
content: Generated .gitignore content
Example:
{
"success": true,
"message": "string",
"content": "string"
}422: Validation Error
Content-Type:
application/jsonResponse Properties:
Example:
{
"detail": [
"unknown_type"
]
}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": {
"templates": "<templates>"
},
"name": "generate_gitignore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templates | Yes | List of template names to generate .gitignore for (e.g., 'python', 'node', 'visualstudiocode') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Generated .gitignore content | |
| message | Yes | Status message | |
| success | Yes | Whether the operation was successful |