memcp_filter_context
Filter context content by applying a regex pattern to include or exclude matching lines, enabling precise control over stored information.
Instructions
Filter context content by regex pattern.
Returns only lines matching (or not matching) the pattern.
Args:
name: Context name
pattern: Regex pattern to match lines
invert: If True, return lines that DON'T match the pattern
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>",
"pattern": "<pattern>"
},
"name": "memcp_filter_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| invert | No | ||
| pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |