add_source
Register a local directory or GitHub repository as a context file source for AI context management.
Instructions
Add a context file source (local directory or GitHub repository)
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": {
"name": "<name>",
"type": "<type>",
"path": "<path>"
},
"name": "add_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name to identify this source | |
| path | Yes | Path to context files (local directory path or GitHub repo path) | |
| repo | No | GitHub repository name (required for GitHub) | |
| type | Yes | Type of source: local directory or GitHub repository | |
| owner | No | GitHub repository owner (required for GitHub) | |
| watch | No | Enable file watching for automatic updates (local sources only) | |
| branch | No | GitHub branch name (defaults to 'main') | |
| githubToken | No | GitHub personal access token (required for GitHub) |