delete_block
Remove specific blocks from RBT documents to edit content structure. Specify project, block ID, and document details to delete targeted sections without full file operations.
Instructions
Delete block from document.
Args:
project_id: Project identifier
block_id: Block ID to delete
feature_id: Feature identifier (for RBT documents)
doc_type: Document type - REQ/BP/TASK (for RBT documents)
file_path: File path relative to docs/ (for general documents)
Returns:
Success message
Example:
delete_block(
project_id="knowledge-smith",
file_path="docs/guide.md",
block_id="blk-paragraph-2"
)
@REQ: REQ-rbt-mcp-tool
@BP: BP-rbt-mcp-tool
@TASK: TASK-011-DeleteBlockTool
Input Schema
Name | Required | Description | Default |
---|---|---|---|
block_id | Yes | ||
doc_type | No | ||
feature_id | No | ||
file_path | No | ||
project_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"block_id": {
"title": "Block Id",
"type": "string"
},
"doc_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Doc Type"
},
"feature_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Feature Id"
},
"file_path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "File Path"
},
"project_id": {
"title": "Project Id",
"type": "string"
}
},
"required": [
"project_id",
"block_id"
],
"type": "object"
}