pt_apply_feature
Generate Cisco IOS configuration for a selected feature and apply it to a Packet Tracer device in one step; use dry_run to preview commands without applying.
Instructions
Generate IOS config for a feature (see ios_features) and apply it to a device in one step. e.g. feature='ospf', params={'networks':['10.0.0.0/30','192.168.1.0/24'],'router_id':'1.1.1.1', 'passive':['GigabitEthernet0/0']}. dry_run=true returns the lines without applying.
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": {
"device": "<device>",
"feature": "<feature>",
"params": "<params>"
},
"name": "pt_apply_feature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| params | Yes | ||
| dry_run | No | ||
| feature | Yes |